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/06/14 10:23:10 UTC
[GitHub] [incubator-celeborn] AngersZhuuuu opened a new pull request, #1594: [CELEBORN-682] Master should handle blacklist worker and shutting down worker separately
AngersZhuuuu opened a new pull request, #1594:
URL: https://github.com/apache/incubator-celeborn/pull/1594
### What changes were proposed in this pull request?
### 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] RexXiong commented on a diff in pull request #1594: [CELEBORN-682] Master and client should handle blacklist worker and shutting down worker separately
Posted by "RexXiong (via GitHub)" <gi...@apache.org>.
RexXiong commented on code in PR #1594:
URL: https://github.com/apache/incubator-celeborn/pull/1594#discussion_r1230388971
##########
client/src/main/scala/org/apache/celeborn/client/ChangePartitionManager.scala:
##########
@@ -253,6 +253,7 @@ class ChangePartitionManager(
.keySet()
.asScala
.filter(w => !lifecycleManager.workerStatusTracker.blacklist.keySet().contains(w))
Review Comment:
It's nice if encapsulate these filter logic into workerStatusTracker
##########
client/src/main/scala/org/apache/celeborn/client/LifecycleManager.scala:
##########
@@ -693,6 +693,9 @@ class LifecycleManager(appId: String, val conf: CelebornConf) extends RpcEndpoin
failureInfos.add(s"[reserveSlots] Failed to" +
s" reserve buffers for ${Utils.makeShuffleKey(applicationId, shuffleId)}" +
s" from worker ${workerInfo.readableAddress()}. Reason: ${res.reason}")
+ if (res.status.equals(StatusCode.WORKER_SHUTDOWN)) {
+ workerStatusTracker.resolveShutdownWorkers(List(workerInfo).asJava)
Review Comment:
Do we need notify the listeners this time?
##########
master/src/main/scala/org/apache/celeborn/service/deploy/master/Master.scala:
##########
@@ -736,7 +737,7 @@ private[celeborn] class Master(
context.reply(CheckQuotaResponse(isAvailable, reason))
}
- private def workersNotBlacklisted(
+ private def workersAvailable(
Review Comment:
Probably workersAvailable need consider shutdown workers every time? so filter with shutdownWorkerSnapshot together with blacklist, then param may for other Scenario.
--
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 #1594: [CELEBORN-682] Master and client should handle blacklist worker and shutting down worker separately
Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on code in PR #1594:
URL: https://github.com/apache/incubator-celeborn/pull/1594#discussion_r1230475425
##########
master/src/main/scala/org/apache/celeborn/service/deploy/master/Master.scala:
##########
@@ -736,7 +737,7 @@ private[celeborn] class Master(
context.reply(CheckQuotaResponse(isAvailable, reason))
}
- private def workersNotBlacklisted(
+ private def workersAvailable(
Review Comment:
Yea, done
--
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 #1594: [CELEBORN-682] Master and client should handle blacklist worker and shutting down worker separately
Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on code in PR #1594:
URL: https://github.com/apache/incubator-celeborn/pull/1594#discussion_r1230475754
##########
client/src/main/scala/org/apache/celeborn/client/LifecycleManager.scala:
##########
@@ -693,6 +693,9 @@ class LifecycleManager(appId: String, val conf: CelebornConf) extends RpcEndpoin
failureInfos.add(s"[reserveSlots] Failed to" +
s" reserve buffers for ${Utils.makeShuffleKey(applicationId, shuffleId)}" +
s" from worker ${workerInfo.readableAddress()}. Reason: ${res.reason}")
+ if (res.status.equals(StatusCode.WORKER_SHUTDOWN)) {
+ workerStatusTracker.resolveShutdownWorkers(List(workerInfo).asJava)
Review Comment:
Not so necessary, remove it.
--
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 #1594: [CELEBORN-682] Master should handle blacklist worker and shutting down worker separately
Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on PR #1594:
URL: https://github.com/apache/incubator-celeborn/pull/1594#issuecomment-1590945996
ping @RexXiong @waitinfuture @FMX
--
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 #1594: [CELEBORN-682] Master and client should handle blacklist worker and shutting down worker separately
Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on code in PR #1594:
URL: https://github.com/apache/incubator-celeborn/pull/1594#discussion_r1230477316
##########
client/src/main/scala/org/apache/celeborn/client/ChangePartitionManager.scala:
##########
@@ -253,6 +253,7 @@ class ChangePartitionManager(
.keySet()
.asScala
.filter(w => !lifecycleManager.workerStatusTracker.blacklist.keySet().contains(w))
Review Comment:
Done
--
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 #1594: [CELEBORN-682] Master and client should handle blacklist worker and shutting down worker separately
Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture closed pull request #1594: [CELEBORN-682] Master and client should handle blacklist worker and shutting down worker separately
URL: https://github.com/apache/incubator-celeborn/pull/1594
--
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 #1594: [CELEBORN-682] Master and client should handle blacklist worker and shutting down worker separately
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #1594:
URL: https://github.com/apache/incubator-celeborn/pull/1594#issuecomment-1594458788
## [Codecov](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1594?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
> Merging [#1594](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1594?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (f795ce3) into [main](https://app.codecov.io/gh/apache/incubator-celeborn/commit/da853473302d4df793f3d5d60a211b948c1b9997?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (da85347) will **increase** coverage by `0.20%`.
> The diff coverage is `n/a`.
```diff
@@ Coverage Diff @@
## main #1594 +/- ##
==========================================
+ Coverage 45.66% 45.85% +0.20%
==========================================
Files 158 159 +1
Lines 9859 9915 +56
Branches 969 970 +1
==========================================
+ Hits 4501 4546 +45
- Misses 5059 5073 +14
+ Partials 299 296 -3
```
[see 9 files with indirect coverage changes](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1594/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] AngersZhuuuu commented on pull request #1594: [CELEBORN-682] Master and client should handle blacklist worker and shutting down worker separately
Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on PR #1594:
URL: https://github.com/apache/incubator-celeborn/pull/1594#issuecomment-1594448890
ping @RexXiong @waitinfuture Any more suggestion?
--
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