Commit Graph

19 Commits (e692f9baff62153bca3bc137c9ad0c2cbeb29e4c)

Author SHA1 Message Date
Benjamin Wang 487b5dd3df Update concurrent test to support multiple operations in each transaction
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-06-06 10:30:59 +01:00
Ishan Tyagi c0b6749ca4 Fix tests to open a bbolt database with file mode:0600 instead of 0666.
Signed-off-by: Ishan Tyagi <ishantyagi25@gmail.com>
2023-07-29 18:06:26 +05:30
Benjamin Wang 99071629bf test: add comments to describe TestConcurrentRepeatableRead
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-26 10:32:33 +08:00
Benjamin Wang 1eaf75a9d9 test: add test case `TestConcurrentRepeatableRead` to verify repeatable read
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-25 10:56:40 +08:00
Benjamin Wang 3ebf0b741b test: enhance the concurrent test to support customize bucket and key
Also support customize the test duration by environment variable.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-08 15:12:09 +08:00
Benjamin Wang 578d3a857e test: support no-op write transaction
A no-op write transaction has two consequences:
    1. The txid increases by 1;
    2. Two meta pages point to the same root page.

Please also read https://github.com/etcd-io/etcd/issues/15498#issuecomment-1528971788.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-03 08:33:20 +08:00
Benjamin Wang aaada7b154 test: update concurrent test case to remove the dependency on internal package
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-03 06:52:59 +08:00
Benjamin Wang 39964028c5 test: check database consistency at the end of concurrent test case
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-01 13:07:36 +08:00
Benjamin Wang e0f875d11b test: save data in deferred function
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-27 14:48:31 +08:00
Benjamin Wang ec3ff470f6 test: rename runOperation to executeOperation
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-24 18:55:18 +08:00
Benjamin Wang 0ddf0fb8ff test: refactor worker/operation and support Delete operation
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-24 16:38:27 +08:00
Benjamin Wang 0d799dc620 test: support multiple writing transactions in the concurrent test
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-20 14:40:54 +08:00
Benjamin Wang e431258c0d test: verify that txids are incremental
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-17 18:50:21 +08:00
Cenk Alti 651c74ab07
skip concurrent read and write tests in short mode
Signed-off-by: Cenk Alti <cenkalti@gmail.com>
2023-04-15 23:48:47 -04:00
Benjamin Wang 8ca298f17f test: get all concurrent test parameters wrapped in a struct
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-15 05:34:21 +08:00
Benjamin Wang fd10e60105 test: explictly mention serializable verification
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-14 17:12:16 +08:00
Benjamin Wang 842da43d53 test: move starting worker into separate function, and collect operation history locally firstly
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-14 13:24:58 +08:00
Benjamin Wang d142709a73 test: improve TestConcurrentReadAndWrite to verify read/write linerizablity
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-14 12:23:16 +08:00
Benjamin Wang 0c6c296522 test: add test case to verify concurrent reading and writing transactions always work correctly
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-06 18:28:45 +08:00