Demogorgon314 commented on code in PR #19592:
URL: https://github.com/apache/pulsar/pull/19592#discussion_r1125682901
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/scheduler/TransferShedder.java:
##########
@@ -434,4 +466,37 @@ private boolean isTransferable(String bundle) {
}
return true;
}
+
+ /**
+ * Check the gave bundle and broker can be transfer or unload with
isolation policies applied.
+ *
+ * @param context The load manager context.
+ * @param availableBrokers The available brokers.
+ * @param namespaceBundle The bundle try to unload or transfer.
+ * @param maxBroker The current broker.
+ * @param minBroker The broker will be transfer to.
+ * @return Can be transfer/unload or not.
+ */
+ private boolean
canTransferWithIsolationPoliciesToBroker(LoadManagerContext context,
+ Map<String,
BrokerLookupData> availableBrokers,
+ NamespaceBundle
namespaceBundle,
+ String maxBroker,
+ Optional<String>
minBroker) {
+ if (isolationPoliciesHelper == null
Review Comment:
Updated.
--
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]