-
Notifications
You must be signed in to change notification settings - Fork 111
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
Fix concurrent DDL queries #1127
Conversation
|
a97a99b
to
f1eeb5a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a small question: I saw that you adjusted the tests marked with #[cfg(cassandra_tests)]
as well. Is it necessary? And this implies more general question: should we use this LBP when running tests against Cassandra?
I'm not against that, as it should not cause any problems. WDYT?
Using the What the ddl method does is up for discussion. We can make it not use the LBP in cassandra tests. Do you think there is any benefit in that? I just had an idea: maybe I should add info to CONTRIBUTING.md that in DDL queries in tests should use the new method? |
That's for sure.
This is what I had in mind - to adjust the
Definitely, let's do that. |
Scylla doesn't like executing multiple DDLs from multiple nodes. To avoid it we will perform DDLs on a single node from all tests. Functions added in this commit will help do just that.
This commit changes all DDL queries to use helper functions introduced in previous commit. Should fix scylladb#1126
Those are no longer necessary.
f1eeb5a
to
019cf1f
Compare
Done. I also changed the struct to be unit struct. |
Fix concurrent DDL queries (cherry picked from commit 64647f9)
Fixes: #1126
This PR implements the third solution from the ones described in the issue.
Pre-review checklist
I added relevant tests for new features and bug fixes.I have provided docstrings for the public items that I want to introduce.I have adjusted the documentation in./docs/source/
.Fixes:
annotations to PR description.