Skip to content

Bug Report: vtctldclient BackupShard reads flags from Backup command instead #13812

Closed
@ajm188

Description

Overview of the Issue

https://github.com/vitessio/vitess/blob/main/go/cmd/vtctldclient/command/backups.go#L139-L143

The three that read from backupOptions.Foo should instead read from backupShardOptions.Foo.

Reproduction Steps

$ vtctldclient BackupShard --allow-primary=true sharded/-80
ERROR: logging before flag.Parse: E0818 09:57:06.599116    1781 syslogger.go:149] can't connect to syslog
E0818 09:57:06.625180    1781 main.go:56] rpc error: code = Unknown desc = no tablet available for backup
$ vtctldclient Backup --allow-primary=true zone1-0000000200
$ echo $?
0

Binary Version

several

Operating System and Environment details

N/A

Log Fragments

No response

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions