feat: add drop-non-retryable-data
to replications commands (#330)
* feat: add drop-non-retryable-data to replications commands * refactor: use drop vs nodrop flags * chore: use the built-in PtrBool
This commit is contained in:
@ -76,6 +76,16 @@ func newReplicationCreateCmd() cli.Command {
|
||||
Value: 67108860, // source: https://github.com/influxdata/openapi/blob/588064fe68e7dfeebd019695aa805832632cbfb6/src/oss/schemas/ReplicationCreationRequest.yml#L19
|
||||
Destination: ¶ms.MaxQueueSize,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "drop-non-retryable-data",
|
||||
Usage: "Drop data when a non-retryable error is encountered instead of retrying",
|
||||
Destination: ¶ms.DropNonRetryableData,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "no-drop-non-retryable-data",
|
||||
Usage: "Do not drop data when a non-retryable error is encountered",
|
||||
Destination: ¶ms.NoDropNonRetryableData,
|
||||
},
|
||||
),
|
||||
Action: func(ctx *cli.Context) error {
|
||||
api := getAPI(ctx)
|
||||
@ -209,6 +219,16 @@ func newReplicationUpdateCmd() cli.Command {
|
||||
Usage: "New max queue size in bytes",
|
||||
Destination: ¶ms.MaxQueueSize,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "drop-non-retryable-data",
|
||||
Usage: "Drop data when a non-retryable error is encountered instead of retrying",
|
||||
Destination: ¶ms.DropNonRetryableData,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "no-drop-non-retryable-data",
|
||||
Usage: "Do not drop data when a non-retryable error is encountered",
|
||||
Destination: ¶ms.NoDropNonRetryableData,
|
||||
},
|
||||
),
|
||||
Action: func(ctx *cli.Context) error {
|
||||
api := getAPI(ctx)
|
||||
|
Reference in New Issue
Block a user