From d97f9db39f0d35c1dc19566f5327f0812e521dc7 Mon Sep 17 00:00:00 2001 From: Hans Zeller Date: Tue, 29 Mar 2016 21:06:44 +0000 Subject: [PATCH] TRAFODION-1910 mxosrvr crashes on Hive query after reconnect NATableDB is caching a pointer to a HiveClient_JNI object (HiveMetaData::client_), but that object gets deallocated when a JDBC client disconnects. Fixing this by keeping the HiveClient_JNI around across sessions. --- core/sql/cli/CliExtern.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/sql/cli/CliExtern.cpp b/core/sql/cli/CliExtern.cpp index e5dd796b44..f09fa5ad73 100644 --- a/core/sql/cli/CliExtern.cpp +++ b/core/sql/cli/CliExtern.cpp @@ -6316,7 +6316,8 @@ Lng32 SQL_EXEC_DeleteHbaseJNI() threadContext->incrNumOfCliCalls(); HBaseClient_JNI::deleteInstance(); - HiveClient_JNI::deleteInstance(); + // The Hive client persists across connections + // HiveClient_JNI::deleteInstance(); } catch(...) {