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

[query] Batch remote server responses #1784

Merged
merged 10 commits into from
Jul 9, 2019
Merged

Conversation

arnikola
Copy link
Collaborator

What this PR does / why we need it:
Fixes #1730

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

none
none


err = stream.Send(response)
if err != nil {
logger.Error("unable to send fetch result", zap.Error(err))
Copy link
Collaborator

Choose a reason for hiding this comment

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

You will want to return err here if send fails, it's quite likely the connection is broken and should just terminate the send.

logger.Error("unable to send search result", zap.Error(err))
err = stream.Send(response)
if err != nil {
logger.Error("unable to send search result", zap.Error(err))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here too, should return err here if send fails, it's quite likely the connection is broken and should just terminate the send.

return err
}

err = stream.SendMsg(response)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hm, think you want the type-safe stream.Send(response) here.


err = stream.SendMsg(response)
if err != nil {
logger.Error("unable to send complete tags result", zap.Error(err))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here too, should return err here if send fails, it's quite likely the connection is broken and should just terminate the send.

Copy link
Collaborator

@robskillington robskillington left a comment

Choose a reason for hiding this comment

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

LGTM once rebased, you'll want to put the fetchOpts.Remote = true in decodeFetchOptions inside the remote package.

@codecov
Copy link

codecov bot commented Jul 8, 2019

Codecov Report

Merging #1784 into master will decrease coverage by 1.7%.
The diff coverage is 52.2%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1784     +/-   ##
========================================
- Coverage      72%   70.3%   -1.8%     
========================================
  Files         986     977      -9     
  Lines       82958   82802    -156     
========================================
- Hits        59807   58260   -1547     
- Misses      19211   20527   +1316     
- Partials     3940    4015     +75
Flag Coverage Δ
#aggregator 74.1% <ø> (-8.3%) ⬇️
#cluster 85.7% <ø> (-0.1%) ⬇️
#collector 63.9% <ø> (+0.1%) ⬆️
#dbnode 77.7% <ø> (-2.5%) ⬇️
#m3em 73.2% <ø> (ø) ⬆️
#m3ninx 74.1% <ø> (-0.1%) ⬇️
#m3nsch 51.1% <ø> (ø) ⬆️
#metrics 17.5% <ø> (ø) ⬆️
#msg 74.7% <ø> (-0.2%) ⬇️
#query 67.6% <52.2%> (+1%) ⬆️
#x 81.8% <ø> (-3.6%) ⬇️

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 527d986...c2c15a8. Read the comment docs.

@arnikola arnikola requested a review from robskillington July 8, 2019 23:51
@@ -380,6 +383,33 @@ func (s *m3storage) CompleteTags(
wg sync.WaitGroup
)

if err != nil {
return nil, err
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hm think the error above is already checked, maybe this was a side effect of a merge?

@arnikola arnikola merged commit d1e6338 into master Jul 9, 2019
@arnikola arnikola deleted the arnikola/batched-grpc branch July 9, 2019 16:43
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.

m3 Coordinator remote error
2 participants