Nadav Har'El
85e5791710
tests/view_schema_test: fix flakiness caused by missing eventually()
...
All tests that involve writing to a base table and then reading from the
view table must use the eventually() function to account for the fact that
the view update is asynchronous, and may be visible only some time after
writing the base table. Forgetting an eventually() can cause the test
to become flaky and sometimes fail because the expected data is not *yet*
in the view. Botond noticed these failures in practice in two subtests
(test_partition_key_filtering_with_slice and
test_clustering_key_in_restrictions).
This patch fixes both tests, and I also reviewed the entire source file
view_schem_test.cc and found additional places missing an eventually()
(and also places that unnecessarily used eventually() to read from the
base table), and fixed those as well.
Fixes #4212
Signed-off-by: Nadav Har'El <nyh@scylladb.com >
Message-Id: <20190212121140.14679-1-nyh@scylladb.com >
2019-02-12 16:10:30 +02:00
..
2019-02-03 13:57:42 +02:00
2019-01-14 10:47:21 +01:00
2019-01-30 11:17:38 +02:00
2018-11-01 13:16:17 +00:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 15:24:31 +00:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2018-12-03 14:40:35 +01:00
2019-01-30 11:17:38 +02:00
2019-02-07 20:18:14 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2018-11-01 13:16:17 +00:00
2018-11-21 00:01:44 +02:00
2019-01-30 11:17:38 +02:00
2019-01-08 13:16:36 +02:00
2019-01-30 11:17:38 +02:00
2019-02-07 20:18:14 +02:00
2019-01-15 17:31:47 +01:00
2018-11-01 10:19:32 +02:00
2019-01-30 11:17:38 +02:00
2019-02-07 10:16:50 +00:00
2019-02-07 10:16:50 +00:00
2019-02-07 20:18:14 +02:00
2019-01-08 13:16:36 +02:00
2019-01-30 11:17:38 +02:00
2019-01-20 15:55:20 +02:00
2019-01-30 11:17:38 +02:00
2019-02-05 16:04:17 +01:00
2019-01-08 13:16:36 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-15 17:31:47 +01:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-02-07 20:18:14 +02:00
2019-01-30 11:17:38 +02:00
2018-11-01 13:16:17 +00:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-02-07 20:18:14 +02:00
2019-01-30 11:17:38 +02:00
2018-11-21 00:01:44 +02:00
2018-11-21 00:01:44 +02:00
2019-02-07 20:18:14 +02:00
2018-09-20 11:31:24 +02:00
2019-02-07 10:16:50 +00:00
2018-11-21 00:01:44 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2018-11-21 00:01:44 +02:00
2019-01-08 13:16:36 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-02-07 20:18:14 +02:00
2019-02-07 10:16:50 +00:00
2018-12-20 13:27:25 +00:00
2019-02-07 20:18:14 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2018-11-21 00:01:44 +02:00
2018-11-21 00:01:44 +02:00
2019-01-08 13:16:36 +02:00
2018-11-21 00:01:44 +02:00
2019-01-30 11:17:38 +02:00
2019-02-05 14:16:36 +02:00
2018-12-19 10:52:19 +00:00
2019-01-08 13:16:36 +02:00
2018-11-01 13:16:17 +00:00
2019-01-22 18:24:52 -05:00
2018-11-01 13:16:17 +00:00
2019-01-30 11:17:38 +02:00
2018-11-21 00:01:44 +02:00
2019-01-08 13:16:36 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2019-02-05 13:26:45 +02:00
2019-01-30 11:17:38 +02:00
2018-11-01 13:16:17 +00:00
2019-01-18 17:49:46 +02:00
2019-01-30 11:17:38 +02:00
2019-02-12 16:08:24 +02:00
2019-02-12 16:08:24 +02:00
2019-02-12 16:08:24 +02:00
2019-02-07 20:18:14 +02:00
2018-11-24 20:16:54 -02:00
2019-02-07 20:18:14 +02:00
2019-02-07 20:18:14 +02:00
2019-01-22 18:25:01 -05:00
2019-01-28 15:03:14 -08:00
2019-01-30 11:17:38 +02:00
2019-02-07 20:18:14 +02:00
2018-12-28 16:31:24 +01:00
2019-01-08 13:16:36 +02:00
2019-01-30 11:17:38 +02:00
2019-01-30 11:17:38 +02:00
2018-12-05 21:51:01 +02:00
2019-02-03 13:57:42 +02:00
2019-01-30 11:17:38 +02:00
2019-02-12 16:10:30 +02:00
2019-01-30 11:17:38 +02:00