Skip to content

Patch WAL dedupe when search is disabled#968

Merged
annanay25 merged 4 commits intografana:mainfrom
annanay25:patch-wal-dedupe
Sep 21, 2021
Merged

Patch WAL dedupe when search is disabled#968
annanay25 merged 4 commits intografana:mainfrom
annanay25:patch-wal-dedupe

Conversation

@annanay25
Copy link
Copy Markdown
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]

Signed-off-by: Annanay <annanayagarwal@gmail.com>
Signed-off-by: Annanay <annanayagarwal@gmail.com>
@joe-elliott
Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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 <annanayagarwal@gmail.com>
@annanay25 annanay25 mentioned this pull request Sep 21, 2021
3 tasks
Comment thread tempodb/search/data_combiner.go
Signed-off-by: Annanay <annanayagarwal@gmail.com>
@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