tanvipenumudy commented on a change in pull request #3180:
URL: https://github.com/apache/ozone/pull/3180#discussion_r830564049
##########
File path:
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/lock/OzoneManagerLock.java
##########
@@ -404,6 +514,37 @@ private void unlock(Resource resource, String resourceName,
// Name of the resource.
private String name;
+ // This helps in maintaining lock related variables locally confined to a
+ // given thread.
+ private final ThreadLocal<LockUsageInfo> readLockTimeStampNanos =
+ new ThreadLocal<LockUsageInfo>() {
+ @Override
+ public LockUsageInfo initialValue() {
+ LockUsageInfo readLockMetrics = new LockUsageInfo();
+ return readLockMetrics;
+ }
+ };
Review comment:
Thank you, I have addressed your comments!
--
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]