-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cassandra-stress] creation code of the schema isn't safe #356
Comments
Is this with |
"Consistency Level" is ignored by DDL statements, the driver waits for schema agreement. |
Another problem is that the stress command is not prepared to handle concurrent schema setup properly:
It catches AlreadyExistsException and assumes it's OK, but if [1] throws it, it doesn't guarantee that [2] was already executed. |
it's enable:
|
What's the scylla-tools version? |
Version: 2022.2.dev-0.20220330.eef4cbb20a51 |
Probably should sync it to the scylla-tools we release (say, in latest 2022.2.x). We don't change it that often though (we just did, due to 3rd party dependency, but we also IIRC bumped up the driver version) |
I think that it happens here:
|
Stop using "Use keyspace" since it can fail when using multiple stress commands in parallel due to a race condition. fixes: #356
this boils down to this core issue: scylladb/scylladb#16909 and the fix for it in: scylladb/scylladb#16969 |
Issue description
when multiple machines are using the same command we can end up in situation some of the command would fail like this:
since
LOCAL_ONE
is used on those functions, we might get into cases the 2nd command is run with a node that didn't yet got the update about the schema change.All those should be using QURUM, or at least same Consistency Level as the user requested in the command
Impact
cause of it, kind of randomly we have jobs that are failing on of the stress commands
How frequently does it reproduce?
Happens once in a while, not easily reproduced
Installation details
Kernel Version: 5.15.0-1050-aws
Scylla version (or git commit hash):
2023.3.0~dev-20231123.45a20d3f1b34
with build-idd8a9c10e69a4a724c9eb2ac44ce1ded995fbea6e
Cluster size: 3 nodes (i3en.2xlarge)
Scylla Nodes used in this run:
OS / Image:
ami-096202c204a4676eb
(aws: undefined_region)Test:
scylla-enterprise-perf-regression-latency-650gb-with-nemesis
Test id:
a1a475f2-e20f-49af-86c5-1f2655194683
Test name:
scylla-enterprise/scylla-enterprise-perf-regression-latency-650gb-with-nemesis
Test config file(s):
Logs and commands
$ hydra investigate show-monitor a1a475f2-e20f-49af-86c5-1f2655194683
$ hydra investigate show-logs a1a475f2-e20f-49af-86c5-1f2655194683
Logs:
Jenkins job URL
Argus
The text was updated successfully, but these errors were encountered: