-
Notifications
You must be signed in to change notification settings - Fork 453
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
[dbnode] Add aggregate term limit regression test #3135
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3135 +/- ##
=========================================
+ Coverage 70.8% 72.3% +1.4%
=========================================
Files 1083 1084 +1
Lines 100219 100236 +17
=========================================
+ Hits 71005 72475 +1470
+ Misses 24139 22726 -1413
+ Partials 5075 5035 -40
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
defer ctx.BlockingClose() | ||
|
||
// create initial span from a mock tracer and get ctx | ||
ctx.SetGoContext(opentracing.ContextWithSpan(stdlibctx.Background(), nil)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah interesting, why do we need to create a span for the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah damn good catch, thought I'd removed this, the test I used as a base did some verification on tracepoints
* master: [dbnode] Add aggregate term limit regression test (#3135) [DOCS] Adding Prometheus steps to quickstart (#3043) [dbnode] Revert AggregateQuery changes (#3133) Fix TestSessionFetchIDs flaky test (#3132) [dbnode] Alter multi-segments builder to order by size before processing (#3128) [dbnode] Emit aggregate usage metrics (#3123) [dbnode] Add Shard.OpenStreamingReader method (#3119) [dtests] Docker tests integration with docker-compose (#3031) [dbnode] Comments / remove unused var (#3124) [query] Handle context.Canceled and map to 499 http status (#3069) [dbnode] Use StreamingReadMetadata for bootstrapping (#2938) [dbnode] Use DefaultTestOptions in test code (#3113) # Conflicts: # src/dbnode/storage/bootstrap/bootstrapper/fs/source.go
* master: [dtest] endpoint to fetch tagged (#3138) Refactor FetchTagged to return an Iterator of results (#3141) [dbnode] Add aggregate term limit regression test (#3135) [DOCS] Adding Prometheus steps to quickstart (#3043) [dbnode] Revert AggregateQuery changes (#3133) Fix TestSessionFetchIDs flaky test (#3132) [dbnode] Alter multi-segments builder to order by size before processing (#3128) [dbnode] Emit aggregate usage metrics (#3123) [dbnode] Add Shard.OpenStreamingReader method (#3119)
Adds a regression test to catch the error seen in #3133; also exercises a test case that caused issues on that path (batch limit was unbounded as long as terms remained the same, which caused issues allocing unbounded slices of terms per block of aggregate query)