-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
[SPARK-3615][Streaming]Fix Kafka unit test hard coded Zookeeper port issue #2483
Conversation
QA tests have started for PR 2483 at commit
|
QA tests have finished for PR 2483 at commit
|
try { | ||
val brokerProps = getBrokerConfig(brokerPort, s"$zkHost:$zkPort") | ||
brokerConf = new KafkaConfig(brokerProps) | ||
server = new KafkaServer(brokerConf) |
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.
Is there no way to specify the KafkaServer port as 0, and get back the actual port it bound to?
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.
Hi TD, thanks for reviewing. Actually there's no way for KafkaServer to read back the port it bound to, so I wrote like this to try different ports.
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.
alright. just one more round of testing, and will merge it if it passes.
LGTM, except one minor confirmation. Also, lets test this a number of times to see its flakiness. |
Jenkins, test this please. |
QA tests have started for PR 2483 at commit
|
QA tests have finished for PR 2483 at commit
|
Test PASSed. |
Jenkins, test this please. |
QA tests have started for PR 2483 at commit
|
QA tests have finished for PR 2483 at commit
|
Test PASSed. |
Jenkins, test this please. |
QA tests have started for PR 2483 at commit
|
QA tests have finished for PR 2483 at commit
|
Test PASSed. |
Details can be seen in SPARK-3615.