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

Memory store limit queries return most recent traces #1394

Merged
merged 3 commits into from
May 13, 2019
Merged

Memory store limit queries return most recent traces #1394

merged 3 commits into from
May 13, 2019

Conversation

jacobmarble
Copy link
Contributor

Fixes #1393

Which problem is this PR solving?

Memory store query results are not stable.

Short description of the changes

Sorts memory store query results before limit.

@codecov
Copy link

codecov bot commented Mar 12, 2019

Codecov Report

Merging #1394 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1394      +/-   ##
==========================================
+ Coverage   98.79%   98.79%   +<.01%     
==========================================
  Files         189      189              
  Lines        8986     8989       +3     
==========================================
+ Hits         8878     8881       +3     
  Misses         84       84              
  Partials       24       24
Impacted Files Coverage Δ
plugin/storage/memory/memory.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2aacfaf...69ae0ad. Read the comment docs.

@ghost ghost assigned yurishkuro Mar 12, 2019
@ghost ghost added the review label Mar 12, 2019
@jacobmarble
Copy link
Contributor Author

@yurishkuro I think this is a fairly simple PR. Do you mind taking a look?

@yurishkuro
Copy link
Member

@pavolloffay @objectiser thoughts on this PR?

@objectiser
Copy link
Contributor

@yurishkuro I'm in favour of having stable results - even though in-memory should only be used for demo/test purposes, it avoids unnecessary questions about why the results are not consistent.

@yurishkuro
Copy link
Member

Stable results are good, my main concern was with performance implications, since the complete data set is now being scanned. I supposed we can punt on the performance aspect of this memory storage, if people are really serious about performance, they may want to use Badger (which I hope to merge next week).

@jpkrohling
Copy link
Contributor

Agree -- I wouldn't stress too much about the performance of this as this is only about the in-memory storage.

@JungleYe
Copy link

@jacobmarble it seems that this merge failed,"This branch is out-of-data with the base branch". so the latest “jaegertracing/all-in-one” is still out of order

@yurishkuro
Copy link
Member

it looks like there was a race condition in one of the tests

@yurishkuro yurishkuro merged commit 3f2570a into jaegertracing:master May 13, 2019
@JungleYe
Copy link

the results are in order now .thank you @jacobmarble @yurishkuro

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.

Memory store plugin query results not stable
5 participants