]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/seastore: add write seqeunce to avoid racing 47552/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Tue, 26 Jul 2022 00:46:29 +0000 (09:46 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Fri, 12 Aug 2022 01:21:50 +0000 (10:21 +0900)
commit3873ac965a902418b3b288bef00235724302f566
tree72d92337296cacc4f9847821d9d2bc8007fa4b8d
parent55381786195693a51d90afc0ed23e58414cde02c
test/seastore: add write seqeunce to avoid racing

In the middle of test_random_write_concurrrent(), there is a chance
that consume(laddr A), regarding transaction 1, in try_submit_transaction
can be called after transaction 2's consume(laddr A) is invoked (note that
seastore handles both transaction 1 and 2 in order, and each other's laddr
are the same).

To avoid this, this commit adds a write seqeunce to prevent overwriting
old checksum associated with laddr---old checksum will not be updated
after write sequence comparison.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/test/crimson/seastore/test_transaction_manager.cc
src/test/crimson/seastore/transaction_manager_test_state.h