Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions go/cmd/vtorc/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ limitations under the License.
package cli

import (
"os"

"github.com/spf13/cobra"

"vitess.io/vitess/go/acl"
Expand Down Expand Up @@ -58,6 +60,10 @@ func run(cmd *cobra.Command, args []string) {
inst.EnableAuditSyslog()
}
config.MarkConfigurationLoaded()
if err := config.Validate(); err != nil {
log.Errorf("Failed to validate config: %+v", err)
os.Exit(1)
}

// Log final config values to debug if something goes wrong.
log.Infof("Running with Configuration - %v", debug.AllSettings())
Expand Down
2 changes: 2 additions & 0 deletions go/flags/endtoend/vtorc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,6 @@ Flags:
--v Level log level for V logs
-v, --version print binary version
--vmodule vModuleFlag comma-separated list of pattern=N settings for file-filtered logging
--wait-for-relaylogs-mode string Specifies the number of tablets to wait for relaylog applying during an EmergencyReparentShard action. ALL: wait for all tablets, MAJORITY: wait for a majority of tablets, COUNT: wait for an exact number of tablets (using --wait-for-relaylogs-tablet-count flag) (default "ALL")
--wait-for-relaylogs-tablet-count int Specifies the exact number of tablets to wait for relaylogs during EmergencyReparentShard actions. This setting must be > 0 when --wait-for-relaylogs-mode=COUNT is set
--wait-replicas-timeout duration Duration for which to wait for replica's to respond when issuing RPCs (default 30s)
90 changes: 75 additions & 15 deletions go/vt/proto/replicationdata/replicationdata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading