-
Notifications
You must be signed in to change notification settings - Fork 15.4k
MINOR:Start processor inside verify message #6029
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 all 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 |
|---|---|---|
|
|
@@ -41,7 +41,7 @@ def __init__(self, test_context): | |
| } | ||
|
|
||
| self.zookeeper = ZookeeperService(self.test_context, num_nodes=1) | ||
| self.kafka = KafkaService(self.test_context, num_nodes=1, | ||
| self.kafka = KafkaService(self.test_context, num_nodes=3, | ||
| zk=self.zookeeper, topics=self.topics) | ||
|
|
||
| self.producer = VerifiableProducer(self.test_context, | ||
|
|
@@ -66,7 +66,6 @@ def test_upgrade_topology_with_named_repartition_topic(self): | |
| for processor in processors: | ||
| processor.CLEAN_NODE_ENABLED = False | ||
| self.set_topics(processor) | ||
| processor.start() | ||
|
Member
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. This is the fix removed start here and below |
||
| self.verify_running(processor, 'REBALANCING -> RUNNING') | ||
|
|
||
| self.verify_processing(processors) | ||
|
|
@@ -76,7 +75,6 @@ def test_upgrade_topology_with_named_repartition_topic(self): | |
| self.verify_stopped(processor) | ||
| # will tell app to add operations before repartition topic | ||
| processor.ADD_ADDITIONAL_OPS = 'true' | ||
| processor.start() | ||
| self.verify_running(processor, 'UPDATED Topology') | ||
|
|
||
| self.verify_processing(processors) | ||
|
|
@@ -89,7 +87,9 @@ def test_upgrade_topology_with_named_repartition_topic(self): | |
|
|
||
| @staticmethod | ||
| def verify_running(processor, message): | ||
| with processor.node.account.monitor_log(processor.STDOUT_FILE) as monitor: | ||
| node = processor.node | ||
| with node.account.monitor_log(processor.STDOUT_FILE) as monitor: | ||
| processor.start() | ||
|
Member
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. This is the other part of the fix moved processor start here
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. What's the significance of after opening the monitor? Does it block on the log file somehow?
Member
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. This closes a very small timing window, I've made similar changes in other system tests before
Member
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. @vvcephei If get don't get the monitor first, we might miss some output lines from the file in
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. 👍 |
||
| monitor.wait_until(message, | ||
| timeout_sec=60, | ||
| err_msg="Never saw '%s' message " % message + str(processor.node.account)) | ||
|
|
||
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.
Changed this value to be consistent with other system tests