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

Remove query_store_for_labels_enabled configuration #5984

Conversation

alanprot
Copy link
Member

@alanprot alanprot commented May 27, 2024

What this PR does:
This configuration is deprecated for a long time.

This PR is removing this config from the codebase:

# Deprecated (Querying long-term store for labels will be always enabled in the
# future.): Query long-term store for series, label values and label names APIs.
# CLI flag: -querier.query-store-for-labels-enabled
[query_store_for_labels_enabled: <boolean> | default = false]

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@alanprot
Copy link
Member Author

@harry671003 can you help review this one?

@alanprot alanprot force-pushed the deprecating/query_store_for_labels_enabled branch from e32205a to ac89360 Compare May 27, 2024 22:30
Signed-off-by: alanprot <alanprot@gmail.com>
@alanprot alanprot force-pushed the deprecating/query_store_for_labels_enabled branch from ac89360 to 86e4d57 Compare May 27, 2024 22:39
…rom ingsters

Signed-off-by: alanprot <alanprot@gmail.com>
@alanprot alanprot force-pushed the deprecating/query_store_for_labels_enabled branch from 71b6a12 to c93092b Compare May 27, 2024 23:28
Signed-off-by: alanprot <alanprot@gmail.com>
@alanprot alanprot marked this pull request as ready for review May 28, 2024 00:11
@alanprot alanprot changed the title Deprecate query_store_for_labels_enabled configuration Remove query_store_for_labels_enabled configuration May 28, 2024
@@ -103,14 +102,15 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
flagext.DeprecatedFlag(f, "querier.iterators", "Deprecated: Use iterators to execute query. This flag is no longer functional; Batch iterator is always enabled instead.", util_log.Logger)
//lint:ignore faillint Need to pass the global logger like this for warning on deprecated methods
flagext.DeprecatedFlag(f, "querier.batch-iterators", "Deprecated: Use batch iterators to execute query. This flag is no longer functional; Batch iterator is always enabled now.", util_log.Logger)
//lint:ignore faillint Need to pass the global logger like this for warning on deprecated methods
flagext.DeprecatedFlag(f, "querier.query-store-for-labels-enabled", "Deprecated: Querying long-term store is always enabled.", util_log.Logger)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intended?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah .. thi give a warning if the flag is still present on the cli.., make sense ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we set this flag when we start to deprecate the flag? I think the title is a bit of misleading...
Remove query_store_for_labels_enabled configuration we are actually deprecating the config here. Not removing.

Removing means to remove the flag entirely and it should throw error if specified

Copy link
Contributor

@harry671003 harry671003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Alan :)

@alanprot alanprot merged commit 2a8017f into cortexproject:master May 29, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants