[ Issue 11032 ] Fixed flaky test ZKSessionTest.. #11032 - #11062
Conversation
In some cases, testing errors occurred due to Zookeeper's notification delay. - Waiting async notice until timeout.
|
/pulsarbot rerun-failure-checks |
eolivelli
left a comment
There was a problem hiding this comment.
thank you for helping with this fix.
overall LGTM
but can you please take a look to my comments ?
Firstly,This test to validate leader election after session is recovered. I think the leaderElectionEvenets check is unstable in here. eg: 1.When the node state is late to update => node state = Leading, leaderElectionEvents is empty. 2.When a node has been elected as the leader => node sate = Leading, leaderElectionEvents = [noLeader,Leading/Following]. 3.Leader election may be triggered at any time.(It may be just after the election due to network delays). - Delete leaderElectionEvents null check. - Waiting for node can be leader after session expire.
|
Firstly, This test validates leader election after the session is recovered. |
|
If I understand it wrong, please give me some guidance. @315157973 @lhotari @eolivelli |
- remove redundant test
…ilover (#10786) Replaced check after sleep to `untilAsserted` and extended `atMost` time to 10 seconds(default of `Awaitility`).
- Delete useless code.
|
@eolivelli Could you review again? |
|
please @315157973 take another look |
|
@315157973 PTAL |
…#11062) Fixes apache#11032 apache#11143 Master Issue: apache#11032 apache#11143 Motivation In some cases, testing errors occurred due to Zookeeper's notification delay. Modifications Waiting async notice until timeout.
Fixes #11032 #11143
Master Issue: #11032 #11143
Motivation
In some cases, testing errors occurred due to Zookeeper's notification delay.
Modifications
Waiting async notice until timeout.