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

[coordinator] Marshal return val of kv handler with jsonpb #3116

Merged
merged 2 commits into from
Jan 22, 2021

Conversation

wesleyk
Copy link
Collaborator

@wesleyk wesleyk commented Jan 22, 2021

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

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

Comment on lines 170 to 173
oldProtoMarshalled := bytes.NewBuffer(nil)
if err := (&jsonpb.Marshaler{}).Marshal(oldProtoMarshalled, oldProto); err != nil {
return nil, fmt.Errorf("failed to marshal old proto: %w", 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 actually should this error out if it couldn't get previous, or just log a warning? Otherwise potential you get stuck on a poisoned message and can't roll forward, e.g. if we change the format of the proto at some point?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hmm good call, will do

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah yeah there's already a similar message above

@codecov
Copy link

codecov bot commented Jan 22, 2021

Codecov Report

Merging #3116 (8ecf524) into master (c74143f) will increase coverage by 0.0%.
The diff coverage is 50.0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3116   +/-   ##
=======================================
  Coverage    72.2%    72.2%           
=======================================
  Files        1084     1084           
  Lines      100203   100206    +3     
=======================================
+ Hits        72436    72442    +6     
- Misses      22729    22731    +2     
+ Partials     5038     5033    -5     
Flag Coverage Δ
aggregator 75.8% <ø> (ø)
cluster 84.8% <ø> (ø)
collector 84.3% <ø> (ø)
dbnode 78.7% <ø> (+<0.1%) ⬆️
m3em 74.4% <ø> (ø)
m3ninx 73.2% <ø> (+<0.1%) ⬆️
metrics 20.0% <ø> (ø)
msg 74.1% <ø> (+0.1%) ⬆️
query 67.2% <50.0%> (-0.1%) ⬇️
x 80.2% <ø> (-0.3%) ⬇️

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 c74143f...8ecf524. Read the comment docs.

Copy link
Collaborator

@arnikola arnikola left a comment

Choose a reason for hiding this comment

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

LGTM

@wesleyk wesleyk merged commit 92bd2f4 into master Jan 22, 2021
@wesleyk wesleyk deleted the wesley-coord branch January 22, 2021 23:28
soundvibe pushed a commit that referenced this pull request Jan 25, 2021
* master:
  [dbnode] Handle empty slices in convert.FromSeriesIDAndEncodedTags (#3107)
  [dbnode] Fix AggregateQuery limits (#3112)
  [coordinator] Marshal return val of kv handler with jsonpb (#3116)
  [m3db] [m3coordinator] Properly pipe along require-exhaustive param for aggregate queries (#3115)
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