Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovsdb-cluster.at: Wait until leader is elected before DB compact.
In test case "election timer change", before testing DB compact, we had to insert some data. Otherwise, inserting data after DB compact will cause busy loop as mentioned in the XXX comment. The root cause of the busy loop is still not clear, but the test itself didn't wait until the leader election finish before initiating DB compact. This patch adds the wait to make sure the test continue after leader is elected so that the following tests are based on a clean state. While this wait is added, the busy loop problem is gone even without inserting the data, so the additional data insertion is also removed by this patch. A separate patch will address the busy loop problem in the scenario: 1. Restart cluster 2. DB compact before the cluster is ready 3. Insert data Signed-off-by: Han Zhou <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information