-
Notifications
You must be signed in to change notification settings - Fork 594
[repo] Fix tests reading query_log
by closing query before flushing logs.
#2528
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
Conversation
Client V2 CoverageCoverage Report
Class Coverage
|
JDBC V2 CoverageCoverage Report
Class Coverage
|
JDBC V1 CoverageCoverage Report
Class Coverage
|
Client V1 CoverageCoverage Report
Class Coverage
|
final String logQuery ="SELECT http_user_agent " + | ||
" FROM system.query_log WHERE query = '" + testQuery.replaceAll("'", "\\\\'") + "'"; | ||
|
||
final String logQuery ="SELECT http_user_agent FROM system.query_log WHERE query_id = " + stmt.enquoteLiteral(queryId); |
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.
I don't see clusterAllReplicas
added as the PR title says
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.
Fair point. Will fix the title
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.
Fixed. Title and description.
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.
Added clusterAllreplicas
to tests.
query_log
with clusterAllReplicas
query_log
by closing query before flushing logs.
|
Summary
There are test that look for some query in the query log. However this tests did not close response object of the query they are looking for therefor query log missing a record.
This PR fixes the issue.
Checklist
Delete items not relevant to your PR: