Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4344

Improve bulletin messaging with exception details

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • Core Framework, Core UI
    • None

    Description

      In some environments it is not possible/allowed to access the NiFi nodes (and consequently the log files). In such a situation, when developing a workflow, the only option to understand what could be wrong with a processor is to look at the bulletins.

      However, the bulletins only contain the message of the main exception. Quite often, the very useful messages to understand what is going on are located into the wrapped exception. At the moment, the only option is to go into the log files to get the messages. Even when access to the log files is authorized this can unnecessarily slow down workflow development.

      Ideally the full exception should be stored with the bulletin. However granting access to a full stack trace can raise security concerns, and besides, the bulletin tooltips are not designed to display large amount of data.

      Additional data would be provided in the bulletins view only. Few options are available:

      • display the full stack trace in the bulletins view but only for users with restricted component authorization.
      • display an enriched message with the concatenation of the detailed messages of the stack trace in the bulletins view (with or without restriction).

      Adding an example to illustrate the problem: with ConvertRecord, in case something is wrong with the schemas for the input/output data, the error is handled with:

      ConvertRecord.java
      } catch (final SchemaNotFoundException | MalformedRecordException e) {
          throw new ProcessException("Could not parse incoming data", e);
      }
      

      In this case the bulletin will contain very little information.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pvillard Pierre Villard
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m