Skip to content

Removed gRPC server to communicate between querier and BucketStore #2324

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

Merged

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Mar 24, 2020

What this PR does:
Currently, the querier starts a gRPC server binded to localhost just to talk to the Thanos BucketStore (which is running within the same process). In this PR I'm proposing to get rid of this hack and just use a mocked storepb.Store_SeriesServer buffering the response storepb.Series in memory (which is what we were already doing anyway).

Notes:

  • I haven't added new tests cause the existing ones should already cover it.
  • Info(), LabelNames() and LabelValues() have been removed because unused (metadata is fetched from ingesters only, Info() is a Thanos-specific thing)

Which issue(s) this PR fixes:
N/A

Checklist

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

Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

This is brilliantly simple solution. I've checked that integration tests cover this code (by inserting panics).

Thank you!

@pracucci pracucci merged commit e9f9ea3 into cortexproject:master Mar 25, 2020
@pracucci pracucci deleted the do-not-use-grpc-for-the-bucket-store branch March 25, 2020 08:24
codesome pushed a commit to codesome/cortex that referenced this pull request Mar 31, 2020
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.

2 participants