swamirishi commented on code in PR #7745:
URL: https://github.com/apache/ozone/pull/7745#discussion_r2076047206
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/ReferenceCounted.java:
##########
@@ -160,4 +160,8 @@ public void close() {
// so it is eligible to be used with try-with-resources.
decrementRefCount();
}
+
+ public Map<Long, Long> getThreadCntMap() {
+ return ImmutableMap.copyOf(threadMap);
Review Comment:
This shouldn't be very expensive as the reference to a snapshot shouldn't be
held by a lot of threads.
--
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]