goiri commented on a change in pull request #1954: HDFS-15217 Add more
information to longest write/read lock held log
URL: https://github.com/apache/hadoop/pull/1954#discussion_r407099593
##########
File path:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystemLock.java
##########
@@ -159,10 +160,14 @@ public void readLockInterruptibly() throws
InterruptedException {
}
public void readUnlock() {
- readUnlock(OP_NAME_OTHER);
+ readUnlock(OP_NAME_OTHER, null);
}
public void readUnlock(String opName) {
+ readUnlock(opName, null);
+ }
+
+ public void readUnlock(String opName, Supplier<String>
lockReportInfoSupplier) {
Review comment:
I'm having a hard time finding who uses this Supplier. Where are we using
this?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]