citus/src
Jelte Fennema 93c6d81b95 Increase shard move test coverage by improving advisory locks
To be able to test non-blocking shard moves we take an advisory lock, so
we can pause the shard move at an interesting moment. Originally this
was during the logical replication catch up phase. But when I added
tests for the rebalancer progress I moved this lock before the initial
data copy. This allowed testing of the rebalance progress, but
inadvertently made our non-blocking tests not actually test if we held
unintended locks during logical replication catch up.

This fixes that by creating two types of advisory locks, one before the
copy and one after. This causes the tests to actually test their
intended scenario again.

Furthermore it starts using one of these locks for blocking shard moves
too. Which allowed me to reduce the complexity of the rebalance progress
test suite quite a bit. It also allowed enabling some flaky tests again,
because this stopped them from being flaky. And finally it allowed
testing of rebalance progress for blocking shard copy operations as well.
2022-10-12 18:12:28 +02:00
..
backend Increase shard move test coverage by improving advisory locks 2022-10-12 18:12:28 +02:00
bin/pg_send_cancellation Make enterprise features open source (#6008) 2022-06-16 00:23:46 -07:00
include Increase shard move test coverage by improving advisory locks 2022-10-12 18:12:28 +02:00
test Increase shard move test coverage by improving advisory locks 2022-10-12 18:12:28 +02:00