-
Notifications
You must be signed in to change notification settings - Fork 15.4k
KAFKA-12381: remove live broker checks for forwarding topic creation #10240
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,7 +65,7 @@ def test_client_ssl_endpoint_validation_failure(self, security_protocol, interbr | |
| Test that invalid hostname in certificate results in connection failures. | ||
| When security_protocol=SSL, client SSL handshakes are expected to fail due to hostname verification failure. | ||
| When security_protocol=PLAINTEXT and interbroker_security_protocol=SSL, controller connections fail | ||
| with hostname verification failure. Hence clients are expected to fail with LEADER_NOT_AVAILABLE. | ||
| with hostname verification failure. Hence clients are expected to fail with INVALID_REPLICATION_FACTOR. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still think this error is not a very intuitive way to handle the absence of metadata. Maybe we can rephrase the explanation a little bit.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good, will add this part! |
||
| """ | ||
|
|
||
| # Start Kafka with valid hostnames in the certs' SANs so that we can create the test topic via the admin client | ||
|
|
@@ -111,7 +111,7 @@ def test_client_ssl_endpoint_validation_failure(self, security_protocol, interbr | |
| # expected | ||
| pass | ||
|
|
||
| error = 'SSLHandshakeException' if security_protocol == 'SSL' else 'LEADER_NOT_AVAILABLE' | ||
| error = 'SSLHandshakeException' if security_protocol == 'SSL' else 'INVALID_REPLICATION_FACTOR' | ||
| wait_until(lambda: self.producer_consumer_have_expected_error(error), timeout_sec=30) | ||
| self.producer.stop() | ||
| self.consumer.stop() | ||
|
|
||
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.
nit: a little more idiomatic to use
Option[Errors]for a case like this