-
Notifications
You must be signed in to change notification settings - Fork 355
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
[CELEBORN-1589] Ensure master is leader for some POST request APIs #2730
Conversation
...er/src/main/scala/org/apache/celeborn/service/deploy/master/http/api/v1/WorkerResource.scala
Outdated
Show resolved
Hide resolved
...er/src/main/scala/org/apache/celeborn/service/deploy/master/http/api/v1/WorkerResource.scala
Outdated
Show resolved
Hide resolved
.../main/scala/org/apache/celeborn/service/deploy/master/http/api/MasterHttpResourceUtils.scala
Outdated
Show resolved
Hide resolved
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.
LGTM, thanks
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.
LGTM.
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.
Just one minor comment - rest looks good to me.
master/src/main/scala/org/apache/celeborn/service/deploy/master/Master.scala
Outdated
Show resolved
Hide resolved
.../main/scala/org/apache/celeborn/service/deploy/master/http/api/MasterHttpResourceUtils.scala
Show resolved
Hide resolved
Merged to main(v0.6.0). |
### What changes were proposed in this pull request? Ensure that `excludeWorker`, `removeWorkersUnavailableInfo`, and `sendWorkerEvents` can only happen from Master leader node. ### Why are the changes needed? prevent inconsistencies from peers ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? tested against a cluster Closes apache#2730 from akpatnam25/CELEBORN-1589. Authored-by: Aravind Patnam <[email protected]> Signed-off-by: SteNicholas <[email protected]>
### What changes were proposed in this pull request? Ensure that `excludeWorker`, `removeWorkersUnavailableInfo`, and `sendWorkerEvents` can only happen from Master leader node. ### Why are the changes needed? prevent inconsistencies from peers ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? tested against a cluster Closes apache#2730 from akpatnam25/CELEBORN-1589. Authored-by: Aravind Patnam <[email protected]> Signed-off-by: SteNicholas <[email protected]>
What changes were proposed in this pull request?
Ensure that
excludeWorker
,removeWorkersUnavailableInfo
, andsendWorkerEvents
can only happen from Master leader node.Why are the changes needed?
prevent inconsistencies from peers
Does this PR introduce any user-facing change?
No
How was this patch tested?
tested against a cluster