Skip to content

Commit

Permalink
MINOR: Reduce required occurrance from 100 to 10 (apache#5048)
Browse files Browse the repository at this point in the history
Due to apache#4644 the consumer connector logs will be much more clean with fewer "broker may not be available" entries. We need to reduce the required frequency from 100 to a smaller number.

I've thought about reducing to just 1, but it may still be transient (i.e. even if broker is starting up you may see a few entries) so I reduced it to 10.

Reviewers: Bill Bejeck <[email protected]>, Matthias J. Sax <[email protected]>
  • Loading branch information
guozhangwang authored May 21, 2018
1 parent 16ad358 commit cbce95d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def test_streams_runs_with_broker_down_initially(self):
broker_unavailable_message = "Broker may not be available"

# verify streams instances unable to connect to broker, kept trying
self.wait_for_verification(processor, broker_unavailable_message, processor.LOG_FILE, 100)
self.wait_for_verification(processor_2, broker_unavailable_message, processor_2.LOG_FILE, 100)
self.wait_for_verification(processor_3, broker_unavailable_message, processor_3.LOG_FILE, 100)
self.wait_for_verification(processor, broker_unavailable_message, processor.LOG_FILE, 10)
self.wait_for_verification(processor_2, broker_unavailable_message, processor_2.LOG_FILE, 10)
self.wait_for_verification(processor_3, broker_unavailable_message, processor_3.LOG_FILE, 10)

# now start broker
self.kafka.start_node(node)
Expand Down

0 comments on commit cbce95d

Please sign in to comment.