-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
A couple endtoend
cluster tests enhancement
#17247
base: main
Are you sure you want to change the base?
A couple endtoend
cluster tests enhancement
#17247
Conversation
Signed-off-by: Shlomi Noach <[email protected]>
Signed-off-by: Shlomi Noach <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17247 +/- ##
==========================================
+ Coverage 67.39% 67.40% +0.01%
==========================================
Files 1570 1570
Lines 252917 252917
==========================================
+ Hits 170446 170490 +44
+ Misses 82471 82427 -44 ☔ View full report in Codecov by Sentry. |
endtond
cluster tests enhancementendtoend
cluster tests enhancement
@@ -72,7 +73,9 @@ func (vtctldclient *VtctldClientProcess) ExecuteCommandWithOutput(args ...string | |||
filterDoubleDashArgs(pArgs, vtctldclient.VtctldClientMajorVersion)..., | |||
) | |||
msg := binlogplayer.LimitString(strings.Join(tmpProcess.Args, " "), 256) // limit log line length | |||
log.Infof("Executing vtctldclient with command: %v (attempt %d of %d)", msg, i+1, retries) | |||
if !vtctldclient.Quiet { |
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.
Where is this set? Or is it for future use?
// MultiQueryTablet lets you execute a query in this tablet and get the result | ||
func (vttablet *VttabletProcess) MultiQueryTablet(sql string, keyspace string, useDb bool) error { |
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.
Same here, this is not used yet. I am guessing there will be a follow-up PR to actually use it?
Description
This PR adds two enhancements in
go/test/endtoend/cluster
:VtctldClientProcess
supportsQuiet
mode, where it does not log the command line invocation to standard output. TheQuiet
field is not thread safe.This will be useful to reduce log clutter. I especially intend to use it to reduce
CheckThrottler
logs.VttabletProcess
supportsMultiQueryTablet()
, complementingMultiQueryTabletWithDB()
. This can be used to issue non-DB specific multi-query SQL from external source.Related Issue(s)
No issue for this PR.
Checklist
Deployment Notes