lhotari commented on code in PR #24371:
URL: https://github.com/apache/pulsar/pull/24371#discussion_r2131643765
##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/extensions/ExtensibleLoadManagerImplTest.java:
##########
@@ -837,7 +845,8 @@ public static void
testOptimizeUnloadDisable(List<PulsarClient> clients,
}
}
- protected static Pair<LookupService, LookupService>
spyLookupService(PulsarClient client) throws IllegalAccessException {
+ protected static Pair<LookupService, LookupService>
spyLookupService(PulsarClient client)
+ throws IllegalAccessException {
Review Comment:
It looks like there are unnecessary formatting changes. In Pulsar, we use
the line width of 120. Please ensure that you have the code style setup in the
way described in https://pulsar.apache.org/contribute/setup-ide/. Most
contributors use IntelliJ.
##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/extensions/ExtensibleLoadManagerImplTest.java:
##########
@@ -1057,15 +1067,16 @@ public CompletableFuture<Map<String, BrokerLookupData>>
filterAsync(Map<String,
brokers.remove(brokerId1);
return CompletableFuture.completedFuture(brokers);
}
- },new MockBrokerFilter() {
+ }, new MockBrokerFilter() {
Review Comment:
This formatting change is fine since it was incorrect before.
##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/extensions/ExtensibleLoadManagerImplTest.java:
##########
@@ -1057,15 +1067,16 @@ public CompletableFuture<Map<String, BrokerLookupData>>
filterAsync(Map<String,
brokers.remove(brokerId1);
return CompletableFuture.completedFuture(brokers);
}
- },new MockBrokerFilter() {
+ }, new MockBrokerFilter() {
@Override
public CompletableFuture<Map<String, BrokerLookupData>>
filterAsync(Map<String, BrokerLookupData> brokers,
ServiceUnitId serviceUnit,
LoadManagerContext context) {
return FutureUtil.failedFuture(new
BrokerFilterException("Test"));
}
})).when(primaryLoadManager).getBrokerFilterPipeline();
- Optional<BrokerLookupData> brokerLookupData =
primaryLoadManager.assign(Optional.empty(), bundle,
LookupOptions.builder().build()).get();
+ Optional<BrokerLookupData> brokerLookupData =
+ primaryLoadManager.assign(Optional.empty(), bundle,
LookupOptions.builder().build()).get();
Review Comment:
these look unnecessary again, perhaps due to different line length in your
IDE code style
--
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]