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

Move instrumentation cleanup to FetchTaggedResultIterator Close() #3173

Merged
merged 5 commits into from
Feb 5, 2021

Conversation

ryanhall07
Copy link
Collaborator

This ensures the code paths for FetchTagged and FetchTaggedIterator both
properly run the instrumentation cleanup (updating metrics, spans)

What this PR does / why we need it:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:


Does this PR require updating code package or user-facing documentation?:


This ensures the code paths for FetchTagged and FetchTaggedIterator both
properly run the instrumentation cleanup (updating metrics, spans)
@codecov
Copy link

codecov bot commented Feb 4, 2021

Codecov Report

Merging #3173 (747e0db) into master (267d654) will increase coverage by 1.2%.
The diff coverage is 100.0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #3173     +/-   ##
=========================================
+ Coverage    71.1%    72.3%   +1.2%     
=========================================
  Files        1085     1086      +1     
  Lines      100990   100429    -561     
=========================================
+ Hits        71827    72634    +807     
+ Misses      24080    22749   -1331     
+ Partials     5083     5046     -37     
Flag Coverage Δ
aggregator 75.8% <ø> (-0.1%) ⬇️
cluster 85.0% <ø> (ø)
collector 84.3% <ø> (ø)
dbnode 78.7% <100.0%> (+2.9%) ⬆️
m3em 74.4% <ø> (ø)
m3ninx 73.1% <ø> (ø)
metrics 20.0% <ø> (ø)
msg 74.2% <ø> (+0.1%) ⬆️
query 67.3% <ø> (ø)
x 80.2% <ø> (-0.2%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.


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 267d654...747e0db. Read the comment docs.


func (s *service) fetchTaggedIter(ctx context.Context, req *rpc.FetchTaggedRequest, instrumentClose func(error)) (
FetchTaggedResultsIter, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: formatting is odd here

@ryanhall07 ryanhall07 merged commit 4874b57 into master Feb 5, 2021
@ryanhall07 ryanhall07 deleted the rhall-share-closing branch February 5, 2021 23:20
soundvibe added a commit that referenced this pull request Feb 10, 2021
* master: (30 commits)
  [dbnode] Use go context to cancel index query workers after timeout (#3194)
  [aggregator] Fix change ActivePlacement semantics on close (#3201)
  [aggregator] Simplify (Active)StagedPlacement API (#3199)
  [aggregator] Checking if metadata is set to default should not cause copying (#3198)
  [dbnode] Remove readers and writer from aggregator API (#3122)
  [aggregator] Avoid large copies in entry rollup comparisons by making them more inline-friendly (#3195)
  [dbnode] Re-add aggregator doc limit update (#3137)
  [m3db] Do not close reader in filterFieldsIterator.Close() (#3196)
  Revert "Remove disk series read limit (#3174)" (#3193)
  [instrument] Improve sampled timer and stopwatch performance (#3191)
  Omit unset fields in metadata json (#3189)
  [dbnode] Remove left-over code in storage/bootstrap/bootstrapper (#3190)
  [dbnode][coordinator] Support match[] in label endpoints (#3180)
  Instrument the worker pool with the wait time (#3188)
  Instrument query path (#3182)
  [aggregator] Remove indirection, large copy from unaggregated protobuf decoder (#3186)
  [aggregator] Sample timers completely (#3184)
  [aggregator] Reduce error handling overhead in rawtcp server (#3183)
  [aggregator] Move shardID calculation out of critical section (#3179)
  Move instrumentation cleanup to FetchTaggedResultIterator Close() (#3173)
  ...
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.

2 participants