jerryshao commented on code in PR #8252:
URL: https://github.com/apache/gravitino/pull/8252#discussion_r2303071724
##########
core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java:
##########
@@ -244,6 +244,9 @@ public void close() {
catalog = null;
return null;
});
+ // Let hooks close first before classLoader close, so that the hook can
+ // release any resources that the catalog might be using.
+ Thread.sleep(500);
Review Comment:
Using sleep is very flaky, you should use another way like the coplit
suggested.
--
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]