mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-31 12:06:44 +00:00
The test for IndexStatus verifies that on a newly created table and GSI, the IndexStatus is "ACTIVE". However, in Alternator, this doesn't strictly need to happen *immediately* - view building, even for an empty table - can take a short while in debug mode. This make the test test test_gsi_describe_indexstatus flaky in debug mode. The fix is to wait for the GSI to become active with wait_for_gsi() before checking it is active. This is sort of silly and redundant, but the important point that if the IndexStatus is incorrect this test will fail, it doesn't really matter whether the wait_for_gsi() or the DescribeTable assertion is what fails. Now that wait_for_gsi() is used in two test files, this patch moves it (and its friend, wait_for_gsi_gone()) to util.py. Signed-off-by: Nadav Har'El <nyh@scylladb.com>
13 KiB
13 KiB