Skip to content
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

Invalid --marker enum value: no-downsample-mark.json #6166

Open
RohitKochhar opened this issue Feb 27, 2023 · 4 comments
Open

Invalid --marker enum value: no-downsample-mark.json #6166

RohitKochhar opened this issue Feb 27, 2023 · 4 comments

Comments

@RohitKochhar
Copy link
Contributor

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

@RohitKochhar
Copy link
Contributor Author

This issue can be assigned to me, I just need some advice on what might be the issue

@RohitKochhar
Copy link
Contributor Author

Looking for some help on this @yeya24

@jimethn
Copy link

jimethn commented Jul 13, 2023

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.

@michalschott
Copy link

michalschott commented Sep 4, 2023

Similar issue #6179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants