You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/01/25 08:26:23 UTC

[GitHub] [hive] dengzhhu653 commented on pull request #2967: HIVE-25892: Group HMSHandler's thread locals into a single context

dengzhhu653 commented on pull request #2967:
URL: https://github.com/apache/hive/pull/2967#issuecomment-1020924354


   > Could we provide a way to clear the context? In Iceberg we create a HMS instance for our tests, and because of the threadlocals here and in the TxnHandler we leak information between the tests.
   
   Add a [CleanupHook](https://github.com/apache/hive/blob/c8c6152b79810276ac070ec057b0643b9ce3b03f/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandlerContext.java#L170-L172) here to clear the locals by calling HMSHandlerContext#clear(CleanupHook cleanupHook),  not sure it enough for the iceberg case.


-- 
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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org