Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12817

If a pipeline plugin fails with an exception, only the root cause is logged

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.3.1
    • Fix Version/s: 6.1.0
    • Component/s: Log, Pipelines
    • Labels:
    • Rank:
      1|i0097b:

      Description

      For example, in my pipeline, I call a 3rd party library for every record. If that throws an exception, I wrap that exception into a new RuntimeException, with a message that has the name of the field and the offset in the file where the error happened. However, somewhere in the call stack this exception gets unwrapped and only the original Exception is logged (for example, NullPointerException) without any of the context that my wrapper exception added. That is disastrous because I cannot throw meaningful exceptions from my plugin.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ashau Albert Shau
                Reporter:
                andreas Andreas Neumann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: