vinayakumarb commented on code in PR #6809: URL: https://github.com/apache/hadoop/pull/6809#discussion_r1603333870
########## hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/LeaseManager.java: ########## @@ -626,7 +626,8 @@ private synchronized boolean checkLeases(Collection<Lease> leasesToCheck) { } } // If a lease recovery happened, we need to sync later. Review Comment: @Hexiaoqiao Its perfectly fine if concurrently other write operations also call`logSync()`. This transaction also will get included in the logSync() called by other threads. Its true for vice versa as well. @ThinkerLei I wanted to make the if-else condition simple. ``` boolean completed=fsn.internalReleaseLease(); if (!needSync)) { needSync = true; } ``` -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org