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

Standardize Bulletin Exception Messages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.14.0
    • None
    • Core Framework
    • None

    Description

      NiFi 1.14.0 included improvements to bulletin log messages that incorporated the Java Exception class and message for each cause in the stack trace.

      The current implementation lists the root cause first and the direct cause last, with each cause associated as follows:

      java.net.ConnectionException: Connection refued
      - causes: com.exceptionfactory.socketbroker.BrokeredConnectException: Proxy Address connection failed
      - causes: org.apache.nifi.processors.standard.socket.ClientConnectException: SSH Client connection failed
      

      Although this approach is technically correct, it does not follow the standard Java logging convention where the direct cause is listed first and the root cause is listed last. The order should be reversed so that the log output reads as follows:

      org.apache.nifi.processors.standard.socket.ClientConnectException: SSH Client connection failed
      - Caused by: com.exceptionfactory.socketbroker.BrokeredConnectException: Proxy Address connection failed
      - Caused by: java.net.ConnectionException: Connection refued
      

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40m
                  40m