-
Notifications
You must be signed in to change notification settings - Fork 228
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
Expose Evacuate Finished API in Helix-Rest #2694
Merged
xyuanlu
merged 1 commit into
apache:ApplicationClusterManager
from
GrantPSpencer:evacuate-finished-api
Nov 14, 2023
Merged
Expose Evacuate Finished API in Helix-Rest #2694
xyuanlu
merged 1 commit into
apache:ApplicationClusterManager
from
GrantPSpencer:evacuate-finished-api
Nov 14, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xyuanlu
approved these changes
Nov 9, 2023
MarkGaox
approved these changes
Nov 9, 2023
desaikomal
reviewed
Nov 9, 2023
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.
Grant to answer your question:
- we should return true/false as JSON and not as pure text. If request was successfully processed - independent of the response, HTTP Return code should be 200.
- all our existing APIs (getResource etc) returns JSON. so it is good to return as JSON
Changed response to JSON of |
GrantPSpencer
changed the base branch from
master
to
ApplicationClusterManager
November 13, 2023 18:36
GrantPSpencer
changed the base branch from
ApplicationClusterManager
to
master
November 13, 2023 18:36
GrantPSpencer
force-pushed
the
evacuate-finished-api
branch
from
November 13, 2023 19:45
f813cde
to
0c0b02b
Compare
GrantPSpencer
changed the base branch from
master
to
ApplicationClusterManager
November 13, 2023 19:45
zpinto
approved these changes
Nov 13, 2023
Pull request approved by @zpinto |
GrantPSpencer
force-pushed
the
evacuate-finished-api
branch
from
November 14, 2023 00:44
0c0b02b
to
6188fd4
Compare
zpinto
approved these changes
Nov 14, 2023
xyuanlu
merged commit Nov 14, 2023
75c5521
into
apache:ApplicationClusterManager
1 of 2 checks passed
asfgit
pushed a commit
that referenced
this pull request
Dec 8, 2023
asfgit
pushed a commit
that referenced
this pull request
Dec 13, 2023
3 tasks
xyuanlu
pushed a commit
that referenced
this pull request
Dec 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
isEvacuateFinished API not available in helix-rest
Description
Expose isEvacuateFinished API in helix-rest. setInstanceOperation is already exposed.
One key thing to note is the way we return the true/false value. Should we always return a 200 response code if we do not encounter an error? If so, then how do we represent the true/false value? Do we want to send it as json {"isEvacuateFinished": "true"} or just as a raw "true" / "false" string? Ideally we should decide on 1 way of returning true/false's and stick to that
Tests
Added tests to updateInstance method in testPerInstanceAccessor.java
$ mvn test -o -Dtest=TestPerInstanceAccessor -pl=helix-rest
Commits
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)