Skip to content

Conversation

@lp247
Copy link
Contributor

@lp247 lp247 commented Nov 24, 2025

For non-Kraft clusters, requests to create and delete clusters must be sent to the controller broker. Non-controller brokers are answering such requests with error 41/NOT_CONTROLLER. This change ensures that those requests are sent to the correct controller in case we receive error code 41 upon creating or deleting topics.

on-behalf-of: @SAP ospo@sap.com

For non-Kraft clusters requests to create and delete clusters must be
sent to the controller broker. Non-controller brokers are answering
such requests with error 41/NOT_CONTROLLER. This change ensures that
those requests are sent to the correct controller in case we receive
error code 41 upon creation or deletion of topics.

on-behalf-of: @SAP ospo@sap.com
Copy link
Contributor

@ShogunPanda ShogunPanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The general idea looks fine to me. Few things to fix.

}
}

[kHandleNotControllerError]<T> (error: Error | null, value: T, callback: Callback<T>): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this only happens in Admin, move it as private method of Admin.

retry
} from '../../helpers.ts'

process
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leftover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants