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

[dbnode] Add placement set handler for perform set operations #2108

Merged
merged 4 commits into from
Jan 30, 2020

Conversation

robskillington
Copy link
Collaborator

What this PR does / why we need it:

Allows us to do goal state based placement updates, must be used with care!!

Special notes for your reviewer:

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

@codecov
Copy link

codecov bot commented Jan 15, 2020

Codecov Report

Merging #2108 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #2108   +/-   ##
======================================
  Coverage    32.7%   32.7%           
======================================
  Files           4       4           
  Lines         336     336           
======================================
  Hits          110     110           
  Misses        216     216           
  Partials       10      10
Flag Coverage Δ
#collector 32.7% <0%> (ø) ⬆️

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 31fe928...0152060. Read the comment docs.

@robskillington
Copy link
Collaborator Author

TODO tests

Copy link
Collaborator

@schallert schallert left a comment

Choose a reason for hiding this comment

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

LGTM pending tests and 404 on failed get

"time"

"github.com/m3db/m3/src/cluster/placement"

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: extra space?

curPlacement, err := service.Placement()
if err != nil {
logger.Error("unable to get current placement", zap.Error(err))
xhttp.Error(w, err, http.StatusInternalServerError)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's make this StatusNotFound? Thinking from the operator perspective, there are times where we have to type check a 404 from Coordinator API.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good, I added this.

@robskillington robskillington merged commit 217cfe8 into master Jan 30, 2020
@robskillington robskillington deleted the r/add-set-handler branch January 30, 2020 11:20
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