test(bigtable): add accelerator concurrency and thread-safety tests - #12
Open
mutianf wants to merge 2 commits into
Open
test(bigtable): add accelerator concurrency and thread-safety tests#12mutianf wants to merge 2 commits into
mutianf wants to merge 2 commits into
Conversation
mutianf
force-pushed
the
accel-11-lifecycle-leak-tests
branch
from
August 11, 2026 14:07
aa06892 to
c9e1985
Compare
mutianf
force-pushed
the
accel-12-concurrency-thread-safety
branch
from
August 11, 2026 14:07
39c49f8 to
7e5a0db
Compare
mutianf
force-pushed
the
accel-11-lifecycle-leak-tests
branch
from
August 12, 2026 03:04
c9e1985 to
c26b6d4
Compare
mutianf
force-pushed
the
accel-12-concurrency-thread-safety
branch
from
August 12, 2026 03:04
7e5a0db to
7e4e81a
Compare
mutianf
force-pushed
the
accel-11-lifecycle-leak-tests
branch
from
August 12, 2026 14:07
c26b6d4 to
992099b
Compare
mutianf
force-pushed
the
accel-12-concurrency-thread-safety
branch
from
August 12, 2026 14:07
7e4e81a to
250c051
Compare
mutianf
commented
Aug 12, 2026
| """Many concurrent callers sharing one accelerated table.""" | ||
|
|
||
| NUM_WORKERS = 6 | ||
| OPS_PER_WORKER = 12 |
Owner
Author
There was a problem hiding this comment.
this seems low? Also I think we want mutliple processes, instead of just multiple workers.
Owner
Author
There was a problem hiding this comment.
Done in commit ea61173:
- Raised the load:
NUM_WORKERS6 -> 16,OPS_PER_WORKER12 -> 50. - Added
test_multiprocess_concurrent_clients_stay_consistent, which spawnsNUM_PROCESSES=4separate processes (viamultiprocessing.get_context("fork")), each building its OWN accelerated client +Tableand driving it fromWORKERS_PER_PROCESS=8concurrent threads. Since the daemon is spawned per-Table(verified inclient.py/_daemon.py), each process gets its own daemon + UDS, so this genuinely exercises inter-process concurrency (multiple independent daemons) on top of the existing intra-process thread-safety test. Every worker owns a disjoint worker-id block / key prefix, and each child reports(ok, touched_keys, error)back over a queue so any cross-process interference or exception fails the test; the parent tracks touched keys with the janitor for cleanup. Regenerated the CrossSync sync twin.
mutianf
force-pushed
the
accel-11-lifecycle-leak-tests
branch
from
August 12, 2026 16:32
e024e78 to
d89f2dc
Compare
mutianf
force-pushed
the
accel-12-concurrency-thread-safety
branch
from
August 12, 2026 16:32
ea61173 to
e76f029
Compare
mutianf
force-pushed
the
accel-11-lifecycle-leak-tests
branch
from
August 12, 2026 18:56
d89f2dc to
17c8bf9
Compare
mutianf
force-pushed
the
accel-12-concurrency-thread-safety
branch
from
August 12, 2026 18:56
e76f029 to
6dbdb95
Compare
mutianf
force-pushed
the
accel-11-lifecycle-leak-tests
branch
from
August 12, 2026 19:04
17c8bf9 to
840229f
Compare
mutianf
force-pushed
the
accel-12-concurrency-thread-safety
branch
from
August 12, 2026 19:04
6dbdb95 to
c37d4ac
Compare
Change-Id: Ic208e22d6499d1525596d15f29bd3ee7d5946c55
…ess test Change-Id: Ie63ca0e0354f218a2aec09e4c60cb4ce27afa5e8
mutianf
force-pushed
the
accel-11-lifecycle-leak-tests
branch
from
August 14, 2026 21:02
840229f to
0f82a63
Compare
mutianf
force-pushed
the
accel-12-concurrency-thread-safety
branch
from
August 14, 2026 21:02
c37d4ac to
e017fa9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds accelerator concurrency and thread-safety tests (async + autogen).
Part of the accelerator test stack. Stacked on top of #11.