dengzhhu653 commented on code in PR #6664:
URL: https://github.com/apache/hive/pull/6664#discussion_r3868793348


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandlerContext.java:
##########
@@ -155,6 +155,21 @@ public static void setRawStore(RawStore rawStore) {
     context.get().rawStore = rawStore;
   }
 
+  /**
+   * Remove and shut down the RawStore associated with the current handler 
thread.
+   *
+   * @return true if a RawStore was present
+   */
+  public static boolean invalidateRawStore() {
+    RawStore rawStore = context.get().rawStore;

Review Comment:
   per my understanding, the rawStore will acquire a new connection from pool 
in a new transaction, and frees it to the pool once the transaction is 
committed or rollback, the broken pool shouldn't affect the thread-local 
rawStore



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to