Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DROP ME! test: account for metadata dissemination delay
after shutting down a node we asserted that that node was not a leader for any partition. however, it may take some time for elections and metadata dissemination to propogate changes. we move the check below a sleep to give the system time for all the changes to be propogated. if after 1 minute the changes haven't been propogated then it would be a worthy thing to investigate. We can see some indirect evidence of this cause for the assertion failure where back-to-back metadata queries hit two different originating brokers where the one query was used to indicate that we'd reached a desired state in the test, while the other resulted in the assertion failure from what is apparent yet-to-be-updated metadata. [DEBUG - 2022-08-19 19:04:18,966 - kafka_cat - _cmd_raw - lineno:54]: {"originating_broker":{"id":3,"name":"docker-rp-2:9092/3"},"query":{"topic":"*"},"controllerid":1,"brokers":[{"id":3,"name":"docker-rp-2:9092"},{"id":2,"name":"docker-rp-15:9092"},{"id":1,"name":"docker-rp-3:9092"}],"topics":[{"topic":"topic-yhvslmrfme","partitions":[{"partition":0,"leader":2,"replicas":[{"id" [DEBUG - 2022-08-19 19:04:18,975 - kafka_cat - _cmd_raw - lineno:54]: {"originating_broker":{"id":2,"name":"docker-rp-15:9092/2"},"query":{"topic":"*"},"controllerid":1,"brokers":[{"id":3,"name":"docker-rp-2:9092"},{"id":2,"name":"docker-rp-15:9092"},{"id":1,"name":"docker-rp-3:9092"}],"topics":[{"topic":"topic-yhvslmrfme","partitions":[{"partition":0,"leader":2,"replicas":[{"id" Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
- Loading branch information