-
Notifications
You must be signed in to change notification settings - Fork 59
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
Schema queries with configurable server-side timeouts #222
Schema queries with configurable server-side timeouts #222
Conversation
I am not sure how to check if USING TIMEOUT should be applied. Every query to schema tables is executed through control connection, so it made same to me to put |
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 great.
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.
Let's cover queryes from awaitSchemaAgreement
, querySystemPeers
and querySystemLocal
@dkropachev do you have any suggestions regarding differentiating between scylla and cassandra from the position of Session or controlConn? scylladb/java-driver#312 (comment) |
Idea on testing it:
|
Perfect place for it is: Lines 236 to 238 in c26ee43
|
I was following scylladb/java-driver#312 and there such queries were not covered. @Bouncheck am I right? |
bf61162
to
b84c4bf
Compare
It was not. Why I think it makes sense to cover them too: |
Those are not large queries, IMHO:
|
True, but since code is already there it won't take much effort to cover them too. |
b84c4bf
to
74b83a0
Compare
Done, and some simple tests added |
74b83a0
to
aa1e1b2
Compare
@dkropachev could you take a look? |
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.
Overall LGTM, but I would wait to @dkropachev and @Lorak-mmk to have their review.
aa1e1b2
to
1fecdb2
Compare
1fecdb2
to
0861335
Compare
Adds
USING TIMEOUT
clause to schema queries when applicable.Uses the timeout defined by
MetadataSchemaRequestTimeout
option inClusterConfig
.Fixes: #172
Fixes: #157