-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Use TSDB index prefix on blooms directory #11977
Conversation
tenant string, | ||
ownershipRange v1.FingerprintBounds, | ||
) error { | ||
logger := log.With(s.logger, "ownership", ownershipRange, "org_id", tenant, "table", table) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can change the signature to accept the struct, not a pointer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to log the full table name, the day is probably more convenient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say seeing the full table name is clearer wrt which TSDB table are we working with (and where will we write to)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Do you also want to use the new DayTable
struct in the bloomgateway code?
The support for table prefixes was introduced with #11977 Signed-off-by: Christian Haudum <[email protected]>
What this PR does / why we need it:
Before this PR, bloom blocks and metas were written to
bloom/<day>/<tenant>...
, but the gateway expects it to be atbloom/<index prefix>_<day>/<tenant>
. This PR adds the index prefix to the path.Special notes for your reviewer:
Checklist
CONTRIBUTING.md
guide (required)CHANGELOG.md
updatedadd-to-release-notes
labeldocs/sources/setup/upgrade/_index.md
production/helm/loki/Chart.yaml
and updateproduction/helm/loki/CHANGELOG.md
andproduction/helm/loki/README.md
. Example PRdeprecated-config.yaml
anddeleted-config.yaml
files respectively in thetools/deprecated-config-checker
directory. Example PR