Skip to content

Commit

Permalink
[improve][broker] Deprecate unused enableNamespaceIsolationUpdateOnTi…
Browse files Browse the repository at this point in the history
…me config (apache#22449)
  • Loading branch information
BewareMyPower authored Apr 8, 2024
1 parent 2469b97 commit a51bbdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1453,11 +1453,10 @@ The max allowed delay for delayed delivery (in milliseconds). If the broker rece
doc = "Enable or disable exposing broker entry metadata to client.")
private boolean exposingBrokerEntryMetadataToClientEnabled = false;

@Deprecated
@FieldContext(
category = CATEGORY_SERVER,
doc = "Enable namespaceIsolation policy update take effect ontime or not,"
+ " if set to ture, then the related namespaces will be unloaded after reset policy to make it "
+ "take effect."
doc = "This config never takes effect and will be removed in the next release"
)
private boolean enableNamespaceIsolationUpdateOnTime = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ protected ServiceConfiguration getDefaultConf() {
void configureDefaults(ServiceConfiguration conf) {
conf.setForceDeleteNamespaceAllowed(true);
conf.setLoadBalancerEnabled(true);
conf.setEnableNamespaceIsolationUpdateOnTime(true);
conf.setAllowOverrideEntryFilters(true);
conf.setEntryFilterNames(List.of());
conf.setMaxNumPartitionsPerPartitionedTopic(0);
Expand Down Expand Up @@ -1394,13 +1393,15 @@ public void brokerNamespaceIsolationPoliciesUpdateOnTime() throws Exception {

try {
admin.lookups().lookupTopic(ns1Name + "/topic3");
fail();
} catch (Exception e) {
// expected lookup fail, because no brokers matched the policy.
log.info(" 2 expected fail lookup");
}

try {
admin.lookups().lookupTopic(ns1Name + "/topic1");
fail();
} catch (Exception e) {
// expected lookup fail, because no brokers matched the policy.
log.info(" 22 expected fail lookup");
Expand Down

0 comments on commit a51bbdd

Please sign in to comment.