Skip to content

Commit

Permalink
fix some fail test
Browse files Browse the repository at this point in the history
  • Loading branch information
m1a2st committed Jan 23, 2025
1 parent 409be64 commit 28931c3
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,16 @@ class DynamicConfigPublisher(
)
case BROKER =>
dynamicConfigHandlers.get(ConfigType.BROKER).foreach(nodeConfigHandler =>
if (resource.name() == conf.nodeId.toString) {
if (resource.name().isEmpty) {
try {
info("Updating cluster configuration : " + toLoggableProps(resource, props).mkString(","))
nodeConfigHandler.processConfigChanges("", props)
} catch {
case t: Throwable => faultHandler.handleFault("Error updating " +
s"cluster with new configuration: ${toLoggableProps(resource, props).mkString(",")} " +
s"in $deltaName", t)
}
} else if (resource.name() == conf.nodeId.toString) {
try {
// Apply changes to this node's dynamic configuration.
info(s"Updating node ${conf.nodeId} with new configuration : " +
Expand Down

0 comments on commit 28931c3

Please sign in to comment.