mirror of https://github.com/apache/nifi.git
NIFI-5841 Fix memory leak of PutHive3Streaming.
This closes #3249. Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
This commit is contained in:
parent
ae67346648
commit
e6e4175d71
|
@ -412,9 +412,6 @@ public class PutHive3Streaming extends AbstractProcessor {
|
|||
}
|
||||
|
||||
hiveStreamingConnection = makeStreamingConnection(options, reader);
|
||||
// Add shutdown handler with higher priority than FileSystem shutdown hook so that streaming connection gets closed first before
|
||||
// filesystem close (to avoid ClosedChannelException)
|
||||
ShutdownHookManager.addShutdownHook(hiveStreamingConnection::close, FileSystem.SHUTDOWN_HOOK_PRIORITY + 1);
|
||||
|
||||
// Write records to Hive streaming, then commit and close
|
||||
hiveStreamingConnection.beginTransaction();
|
||||
|
|
Loading…
Reference in New Issue