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

PutHive3Streaming processor Mem Leak

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0, 1.7.1
    • Fix Version/s: 1.9.0
    • Component/s: Extensions
    • Labels:
      None
    • Environment:
      Hive 3.1.*

      Description

      Nifi versions: 1,7.1 and 1.8.0
      nifi/nifi-nar-bundles/nifi-hive-bundle/nifi-hive3-processors/src/main/java/org/apache/nifi/processors/hive/PutHive3Streaming.java**
      , line 417 seems redundant,

      ShutdownHookManager.addShutdownHook(hiveStreamingConnection::close, FileSystem.SHUTDOWN_HOOK_PRIORITY + 1)

       

      Whereas Hive 3.0.0 did not add a shutdownhook within connect() method, Hive 3.1.* does:

       hive/streaming/src/java/org/apache/hive/streaming/HiveStreamingConnection.java

      ShutdownHookManager.addShutdownHook(streamingConnection::close, FileSystem.SHUTDOWN_HOOK_PRIORITY + 1);

      This creates two references to the shutdownhook object per transaction out of which only one is ever cleaned; resulting in a slow/fast degradation of heap space depending on the velocity of transactions.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kei_miyauchi Kei Miyauchi
                Reporter:
                PlatosMoron Advith Nagappa
              • Votes:
                0 Vote for this issue
                Watchers:
                4 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 - 50m
                  50m