lhotari commented on code in PR #23902:
URL: https://github.com/apache/pulsar/pull/23902#discussion_r1933900318


##########
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/ResourceLockImpl.java:
##########
@@ -188,6 +188,17 @@ private CompletableFuture<Void> 
acquireWithNoRevalidation(T newValue) {
         CompletableFuture<Void> result = new CompletableFuture<>();
         store.put(path, payload, Optional.of(version), 
EnumSet.of(CreateOption.Ephemeral))
                 .thenAccept(stat -> {
+                    if (!stat.isEphemeral()) {

Review Comment:
   There's 
https://github.com/apache/pulsar/blob/master/pulsar-broker/src/test/java/org/apache/pulsar/broker/MultiBrokerTestZKBaseTest.java
 as a way how it's currently possible to use a real Zookeeper with tests. 
However, adding direct support to PulsarTestContext and making it easy to 
override some protected method in MockedPulsarServiceBaseTest to choose it 
would be more flexible.



-- 
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]

Reply via email to