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

Patch WAL dedupe when search is disabled #968

Merged
merged 4 commits into from
Sep 21, 2021

Conversation

annanay25
Copy link
Contributor

@annanay25 annanay25 commented Sep 20, 2021

What this PR does:
Fixes an issue with WAL dedupe (SearchDataCombiner) when search is disabled. This happens because we still create search WAL files on the ingester with empty entries.

Which issue(s) this PR fixes:
Fixes #967. Part of #932

Checklist

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

@joe-elliott
Copy link
Member

This happens because we still create search WAL files on the ingester with empty entries.

I'm fine with this fix, but should we also not write an empty entry? Doesn't that mean we're incurring some write penalties even with search disabled?

@annanay25
Copy link
Contributor Author

I'm fine with this fix, but should we also not write an empty entry? Doesn't that mean we're incurring some write penalties even with search disabled?

So we are basically writing zero length objects to the search data file, which I don't think is costly. The solution to this is to have

if i.searchEnabled {
  // bail
}

sprinkled all over the ingester code (CutCompleteTraces, CompleteBlock, Flush, ... etc).

Not sure if we want that, but open to suggestions.

Signed-off-by: Annanay <[email protected]>
@annanay25 annanay25 mentioned this pull request Sep 21, 2021
3 tasks
@annanay25 annanay25 merged commit e5f7ded into grafana:main Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Index out of range at completing block log message
2 participants