You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/05/25 09:30:29 UTC

[GitHub] [pulsar] eolivelli commented on a diff in pull request #15755: [WIP]Fix potential race condition when close LockManager

eolivelli commented on code in PR #15755:
URL: https://github.com/apache/pulsar/pull/15755#discussion_r881435933


##########
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/LockManagerImpl.java:
##########
@@ -173,15 +173,13 @@ public CompletableFuture<Void> asyncClose() {
             if (state != State.Ready) {
                 return CompletableFuture.completedFuture(null);
             }
-
             locks = new HashMap<>(this.locks);
             this.state = State.Closed;
         }
-
         return FutureUtils.collect(
-                locks.values().stream()
-                        .map(ResourceLock::release)
-                        .collect(Collectors.toList()))
+                        locks.values().stream()

Review Comment:
   please revert useless formatting changes (they make it harder to cherry-pick)



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org