Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scylla_node: wait also for node to know of another node's token
In the previous patch, we introduced the wait_rest_for_alive() function that uses the REST API to wait for node A to be able to use node B. We waited for node A to consider node B "alive" and "not joining" (in nodetool status, this is called "UN" state), but for some tests this is not enough: If the test sends A a read with CL=ALL, it needs to know B's tokens to send it one of the reads. It turns out that a node A can think that B is alive before B has gossipped its tokens. So in this patch we modify wait_rest_for_alive() to use the REST API to **also** ensure that node A is aware of B's tokens. An example dtest that is fixed by this patch is cdc_test.py:: TestCdcWithCompactStorage::test_artificial_column_with_type_empty_is_missing Signed-off-by: Nadav Har'El <[email protected]>
- Loading branch information