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

Possible null pointer in PutHiveStreaming.cleanup() if PutHiveStreaming.setup() fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None

      Description

      callTimeoutPool is one of the last things instantiated in PutHiveStreaming.setup(). The cleanup code doesn't check for null before attempting to shutdown the callTimeoutPool, resulting an a NPE if callTimeoutPool is not initialized.

      A NPE is also possible while iterating over allWriters.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bryanrosander@gmail.com Bryan Rosander
                Reporter:
                bryanrosander@gmail.com Bryan Rosander
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: