You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/ExtensibleLoadManagerImpl.java
+16
Original file line number
Diff line number
Diff line change
@@ -380,12 +380,22 @@ public CompletableFuture<Optional<BrokerLookupData>> assign(Optional<ServiceUnit
Copy file name to clipboardexpand all lines: pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/ExtensibleLoadManagerWrapper.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ public CompletableFuture<Boolean> checkOwnershipAsync(Optional<ServiceUnitId> to
Copy file name to clipboardexpand all lines: pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/channel/ServiceUnitStateChannel.java
+5
Original file line number
Diff line number
Diff line change
@@ -206,4 +206,9 @@ public interface ServiceUnitStateChannel extends Closeable {
206
206
* Cancels the ownership monitor.
207
207
*/
208
208
voidcancelOwnershipMonitor();
209
+
210
+
/**
211
+
* Cleans the service unit ownerships from the current broker's channel.
Copy file name to clipboardexpand all lines: pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/channel/ServiceUnitStateChannelImpl.java
+50-13
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,10 @@ public class ServiceUnitStateChannelImpl implements ServiceUnitStateChannel {
Copy file name to clipboardexpand all lines: pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/extensions/ExtensibleLoadManagerImplTest.java
+45
Original file line number
Diff line number
Diff line change
@@ -880,6 +880,51 @@ SplitDecision.Reason.Unknown, new AtomicLong(6))
Copy file name to clipboardexpand all lines: pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/extensions/channel/ServiceUnitStateChannelTest.java
+5-5
Original file line number
Diff line number
Diff line change
@@ -515,7 +515,7 @@ public void transferTestWhenDestBrokerFails()
515
515
516
516
// recovered, check the monitor update state : Assigned -> Owned
0 commit comments