You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "AngersZhuuuu (via GitHub)" <gi...@apache.org> on 2023/07/27 08:10:14 UTC

[GitHub] [incubator-celeborn] AngersZhuuuu opened a new pull request, #1768: [CELEBORN-847] Support trigger exit and exitImmediately by RESTFUL API

AngersZhuuuu opened a new pull request, #1768:
URL: https://github.com/apache/incubator-celeborn/pull/1768

   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     - Make sure the PR title start w/ a JIRA ticket, e.g. '[CELEBORN-XXXX] Your PR title ...'.
     - Be sure to keep the PR description updated to reflect all changes.
     - Please write your PR title to summarize what this PR proposes.
     - If possible, provide a concise example to reproduce the issue for a faster review.
   -->
   
   ### What changes were proposed in this pull request?
   As title
   
   
   ### Why are the changes needed?
   
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   
   
   ### How was this patch tested?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] AngersZhuuuu commented on pull request #1768: [CELEBORN-847] Support use RESTful API to trigger worker exit and exitImmediately

Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on PR #1768:
URL: https://github.com/apache/incubator-celeborn/pull/1768#issuecomment-1654924017

   ping @pan3793 @waitinfuture @RexXiong 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] AngersZhuuuu commented on a diff in pull request #1768: [CELEBORN-847] Support use RESTful API to trigger worker exit and exitImmediately

Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on code in PR #1768:
URL: https://github.com/apache/incubator-celeborn/pull/1768#discussion_r1277050327


##########
service/src/main/scala/org/apache/celeborn/server/common/http/HttpRequestHandler.scala:
##########
@@ -90,8 +94,8 @@ class HttpRequestHandler(
         service.isShutdown
       case "/isRegistered" if service.serviceName == Service.WORKER =>
         service.isRegistered
-      case "/decommission" if service.serviceName == Service.WORKER =>
-        service.decommission
+      case "/exit" if service.serviceName == Service.WORKER =>
+        service.exit(parameters.getOrElse("TYPE", ""))

Review Comment:
   Necessary to add strict constraint?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] codecov[bot] commented on pull request #1768: [CELEBORN-847] Support trigger exit and exitImmediately by RESTFUL API

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #1768:
URL: https://github.com/apache/incubator-celeborn/pull/1768#issuecomment-1653381222

   ## [Codecov](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1768?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   > Merging [#1768](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1768?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (6486602) into [main](https://app.codecov.io/gh/apache/incubator-celeborn/commit/bacfb54447f9d5b7cb4b371d7a7aed1895181471?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (bacfb54) will **decrease** coverage by `0.11%`.
   > Report is 3 commits behind head on main.
   > The diff coverage is `0.00%`.
   
   ```diff
   @@            Coverage Diff             @@
   ##             main    #1768      +/-   ##
   ==========================================
   - Coverage   46.75%   46.64%   -0.11%     
   ==========================================
     Files         162      163       +1     
     Lines       10046    10023      -23     
     Branches      927      924       -3     
   ==========================================
   - Hits         4696     4674      -22     
   - Misses       5028     5041      +13     
   + Partials      322      308      -14     
   ```
   
   
   | [Files Changed](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [...rg/apache/celeborn/server/common/HttpService.scala](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c2VydmljZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2NlbGVib3JuL3NlcnZlci9jb21tb24vSHR0cFNlcnZpY2Uuc2NhbGE=) | `0.00% <0.00%> (ø)` | |
   | [...leborn/server/common/http/HttpRequestHandler.scala](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c2VydmljZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2NlbGVib3JuL3NlcnZlci9jb21tb24vaHR0cC9IdHRwUmVxdWVzdEhhbmRsZXIuc2NhbGE=) | `0.00% <0.00%> (ø)` | |
   | [...apache/celeborn/server/common/http/HttpUtils.scala](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c2VydmljZS9zcmMvbWFpbi9zY2FsYS9vcmcvYXBhY2hlL2NlbGVib3JuL3NlcnZlci9jb21tb24vaHR0cC9IdHRwVXRpbHMuc2NhbGE=) | `0.00% <0.00%> (ø)` | |
   
   ... and [5 files with indirect coverage changes](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1768/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] waitinfuture commented on a diff in pull request #1768: [CELEBORN-847] Support use RESTful API to trigger worker exit and exitImmediately

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on code in PR #1768:
URL: https://github.com/apache/incubator-celeborn/pull/1768#discussion_r1282628493


##########
docs/monitoring.md:
##########
@@ -313,4 +313,4 @@ API path listed as below:
 | /unavailablePeers          | List the unavailable peers of the worker, this always means the worker connect to the peer failed.       |
 | /isShutdown                | Show if the worker is during the process of shutdown.                                                    |
 | /isRegistered              | Show if the worker is registered to the master success.                                                  |
-| /decommission              | Trigger this worker to decommission from the cluster                                                     |
\ No newline at end of file
+| /exit                      | Trigger this worker to exit, if worker enable graceful shutdown, it will exit gracefully.                |

Review Comment:
   Better to document on the parameters



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] AngersZhuuuu commented on pull request #1768: [CELEBORN-847] Support trigger exit and exitImmediately by RESTFUL API

Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on PR #1768:
URL: https://github.com/apache/incubator-celeborn/pull/1768#issuecomment-1653341913

   ping @waitinfuture @RexXiong @pan3793 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] AngersZhuuuu commented on pull request #1768: [CELEBORN-847] Support use RESTful API to trigger worker exit and exitImmediately

Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on PR #1768:
URL: https://github.com/apache/incubator-celeborn/pull/1768#issuecomment-1659622815

   ping @pan3793 @waitinfuture @RexXiong 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] waitinfuture commented on pull request #1768: [CELEBORN-847] Support use RESTful API to trigger worker exit and exitImmediately

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on PR #1768:
URL: https://github.com/apache/incubator-celeborn/pull/1768#issuecomment-1663311224

   Shall we consider idempotent here?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] waitinfuture closed pull request #1768: [CELEBORN-847] Support use RESTful API to trigger worker exit and exitImmediately

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture closed pull request #1768: [CELEBORN-847] Support use RESTful API to trigger worker exit and exitImmediately
URL: https://github.com/apache/incubator-celeborn/pull/1768


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org