Skip to content

Parquet: Make FindTraceByID honor buffer and caching settings - #1697

Merged
joe-elliott merged 5 commits into
grafana:mainfrom
joe-elliott:querier-stuff
Aug 29, 2022
Merged

Parquet: Make FindTraceByID honor buffer and caching settings#1697
joe-elliott merged 5 commits into
grafana:mainfrom
joe-elliott:querier-stuff

Conversation

@joe-elliott

@joe-elliott joe-elliott commented Aug 26, 2022

Copy link
Copy Markdown
Collaborator

What this PR does:

  • Skip bloom filters when loading for trace by id search. (Skipping page index caused an nil pointer panic)
  • Honor cache and buffer settings when searching for traces by id.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Comment thread tempodb/encoding/vparquet/block_findtracebyid.go Outdated
Signed-off-by: Joe Elliott <number101010@gmail.com>
@mdisibio

mdisibio commented Aug 26, 2022

Copy link
Copy Markdown
Contributor

Skip bloom filters when loading for trace by id search. (Skipping page index caused an nil pointer panic)

The nil panic is probably due to how trace by id search inspects page bounds to do a binary search for the trace, minimizes reads of the page bodies. Do you have any more info about the benefits of skipping bloom filters?

@joe-elliott

joe-elliott commented Aug 29, 2022

Copy link
Copy Markdown
Collaborator Author

Do you have any more info about the benefits of skipping bloom filters?

I can actually detect no difference between SkipBloomFilters true or false. I'm going to remove.

Signed-off-by: Joe Elliott <number101010@gmail.com>
@joe-elliott joe-elliott changed the title Parquet: Querier Find Trace By ID improvements Aug 29, 2022
@joe-elliott
joe-elliott enabled auto-merge (squash) August 29, 2022 15:01
@joe-elliott
joe-elliott merged commit e177ad0 into grafana:main Aug 29, 2022
mattdurham pushed a commit to mattdurham/tempo that referenced this pull request Jun 18, 2026
…a#1697)

* querier use search options

Signed-off-by: Joe Elliott <number101010@gmail.com>

* fix race

Signed-off-by: Joe Elliott <number101010@gmail.com>

* changelog

Signed-off-by: Joe Elliott <number101010@gmail.com>

* remove todone todo

Signed-off-by: Joe Elliott <number101010@gmail.com>

* removed innocuous change

Signed-off-by: Joe Elliott <number101010@gmail.com>

Signed-off-by: Joe Elliott <number101010@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants