NIFI-5841 Fix memory leak of PutHive3Streaming.

This closes #3249.

Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
This commit is contained in:
kei miyauchi 2019-01-08 09:38:46 +09:00 committed by Koji Kawamura
parent ae67346648
commit e6e4175d71
1 changed files with 0 additions and 3 deletions

View File

@ -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();