okumin commented on code in PR #6461:
URL: https://github.com/apache/hive/pull/6461#discussion_r3187827040


##########
standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCatalogAdapter.java:
##########
@@ -574,8 +584,11 @@ public <T extends RESTResponse> T postForm(
   }
 
   @Override
-  public void close() {
+  public void close() throws IOException {
     // The caller is responsible for closing the underlying catalog backing 
this REST catalog.
+    for (IcebergMetricsReporter reporter : metricsReporters) {

Review Comment:
   True. I found the close method would not be invoked, so I added a Servlet 
lifecycle method and logging for safety.
   
https://github.com/apache/hive/pull/6461/commits/69c2efd90e4607a9d21dc1ebf6c4a0c811779d23



-- 
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