Github user jinfengni commented on the issue: https://github.com/apache/drill/pull/543 @vkorukanti , thanks for pointing the place it might leaking. I'll revise the patch. Agree with @sudheeshkatkam that HiveStoragePlugin may leak connection (I saw Drill leaked a connection, when HiveStoragePlugin conf is updated each time). Since @sudheeshkatkam opened DRILL-4774, it would be addressed in DRILL-4774. The fix Sudheesh identified is in later version of Hive. Unless we move Drill's dependency forward, we need find some way to fix leaking for now. Also, when the hive client call hit tableNotFound / tableNotAccessible error, Drill does not have to reconnect.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---