You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanos, Prometheus and Golang version used: Thanos v0.30.2
Object Storage Provider: AWS
What happened:
Following my contribution with #5945, there is new functionality to mark a block for no-downsample in the same way that blocks can be marked for no-compact.
When running the command: thanos tools bucket mark --objstore.config="..." --marker=no-downsample-mark.json --details="..." --id=BLOCK_ID, the following error is given:
enum value must be one of deletion-mark.json,no-compact-mark.json, got 'no-downsample-mark.json
This is unexpected, as the line with checks the enum value is as follows (cmd/thanos/tools_bucket.go:242): cmd.Flag("marker", "Marker to be put.").Required().EnumVar(&tbc.marker, metadata.DeletionMarkFilename, metadata.NoCompactMarkFilename, metadata.NoDownsampleMarkFilename). The value of metadata.NoDownsampleMarkFilename is "no-downsample-mark.json", so I am not sure why the enum check is not including this as an allowed value for this command.
What you expected to happen:
The --marker flag should accept no-downsample-mark.json the same way that it accepts deletion-mark.json or no-compact-mark.json
How to reproduce it (as minimally and precisely as possible):
Mark any block with no-downsample-mark.json using the following command:
thanos tools bucket mark --objstore.config="..." --marker=no-downsample-mark.json --details="..." --id=BLOCK_ID
The text was updated successfully, but these errors were encountered:
This is impacting us, we need a way to mark blocks for no-downsample. It looks like the code exists server-side, but the cli tool errors when I try to use it.
Thanos, Prometheus and Golang version used: Thanos v0.30.2
Object Storage Provider: AWS
What happened:
Following my contribution with #5945, there is new functionality to mark a block for
no-downsample
in the same way that blocks can be marked forno-compact
.When running the command:
thanos tools bucket mark --objstore.config="..." --marker=no-downsample-mark.json --details="..." --id=BLOCK_ID
, the following error is given:enum value must be one of deletion-mark.json,no-compact-mark.json, got 'no-downsample-mark.json
This is unexpected, as the line with checks the enum value is as follows (
cmd/thanos/tools_bucket.go:242
):cmd.Flag("marker", "Marker to be put.").Required().EnumVar(&tbc.marker, metadata.DeletionMarkFilename, metadata.NoCompactMarkFilename, metadata.NoDownsampleMarkFilename)
. The value ofmetadata.NoDownsampleMarkFilenam
e is"no-downsample-mark.json"
, so I am not sure why the enum check is not including this as an allowed value for this command.What you expected to happen:
The
--marker
flag should acceptno-downsample-mark.json
the same way that it acceptsdeletion-mark.json
orno-compact-mark.json
How to reproduce it (as minimally and precisely as possible):
Mark any block with
no-downsample-mark.json
using the following command:thanos tools bucket mark --objstore.config="..." --marker=no-downsample-mark.json --details="..." --id=BLOCK_ID
The text was updated successfully, but these errors were encountered: