-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MINOR: Convert DynamicBrokerReconfigurationTest to KRaft #17905
MINOR: Convert DynamicBrokerReconfigurationTest to KRaft #17905
Conversation
@cmccabe Could you please check the failed tests? |
or the test can be disabled temporarily and I will file a jira to trace it |
355dfd3
to
4a5d199
Compare
4a5d199
to
c6eac28
Compare
@@ -852,7 +840,8 @@ class DynamicBrokerReconfigurationTest extends QuorumTestHarness with SaslSetup | |||
"", mayReceiveDuplicates = false) | |||
verifyThreadPoolResize(SocketServerConfigs.NUM_NETWORK_THREADS_CONFIG, config.numNetworkThreads, | |||
networkThreadPrefix, mayReceiveDuplicates = true) | |||
verifyThreads("data-plane-kafka-socket-acceptor-", config.listeners.size) | |||
System.out.println("config.listeners = " + config.listeners) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please remove this line?
I fixed it by reducing |
def testThreadPoolResize(groupProtocol: String): Unit = { | ||
@ParameterizedTest(name = TestInfoUtils.TestWithParameterizedQuorumAndGroupProtocolNames) | ||
@MethodSource(Array("getTestQuorumAndGroupProtocolParametersAll")) | ||
def testThreadPoolResize(quorum: String, groupProtocol: String): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets flaky and I open https://issues.apache.org/jira/browse/KAFKA-18123 to fix it.
Convert testUncleanLeaderElectionEnable and testMetricsReporterUpdate to KRaft. Remove testAdvertisedListenerUpdate, testAddRemoveSslListener, testAddRemoveSaslListeners since we no longer support dynamically adding or removing network listeners when in KRaft mode. Make TestUtils.ensureConsistentKRaftMetadata robust against brokers that don't have sharedServer.loader initialized yet (or have shut down). Reviewers: Chia-Ping Tsai <[email protected]>
Convert testUncleanLeaderElectionEnable and testMetricsReporterUpdate to KRaft. Remove testAdvertisedListenerUpdate, testAddRemoveSslListener, testAddRemoveSaslListeners since we no longer support dynamically adding or removing network listeners when in KRaft mode. Make TestUtils.ensureConsistentKRaftMetadata robust against brokers that don't have sharedServer.loader initialized yet (or have shut down). Reviewers: Chia-Ping Tsai <[email protected]>
Convert testUncleanLeaderElectionEnable and testMetricsReporterUpdate to KRaft.
Remove testAdvertisedListenerUpdate, testAddRemoveSslListener, testAddRemoveSaslListeners since we no longer support dynamically adding or removing network listeners when in KRaft mode.
Make TestUtils.ensureConsistentKRaftMetadata robust against brokers that don't have sharedServer.loader initialized yet (or have shut down).