Files
scylladb/test
Nadav Har'El c41b2d35ed test/alternator: test concurrent TagResource / UntagResource
This patch adds an Alternator test reproducing issue #6389 - that
concurrent TagResource and/or UntagResource operations was broken and
some of the concurrent modifications were lost.

The test has two threads, one loops adds and removes a tag A, the
other adds and removes a tag B. After we add tag A, we expect tag A
to be there - but due to issue #6389 this modification was sometimes
lost when it raced with an operation on B.

This test consistently failed before issue #6389 was fixed, and passes
now after the issue was fixed by the previous patches. The bug reproduces
by chance, so it requires a fairly long loop (a few seconds) to be sure
it reproduces - so is marked a "veryslow" test and will not run in CI,
but can be used to manually reproduce this issue with:

    test/alternator/run --runveryslow test_tag.py::test_concurrent_tag

Refs #6389.

Signed-off-by: Nadav Har'El <nyh@scylladb.com>
2023-03-13 13:38:15 +02:00
..
2023-03-02 10:15:25 +08:00
2022-07-20 18:19:25 +02:00
2023-03-02 10:15:25 +08:00