[CELEBORN-668][FOLLOWUP] Handle unknown worker should also reply WorkerLostResponse

### What changes were proposed in this pull request?
Now worker will send WorkLost too, master should also reply WorkerLostResponse when it's unknown worker

### Why are the changes needed?

### Does this PR introduce _any_ user-facing change?

### How was this patch tested?

Closes #1584 from AngersZhuuuu/CELEBORN-668-FOLLOWUP.

Lead-authored-by: Angerszhuuuu <angers.zhu@gmail.com>
Co-authored-by: Keyong Zhou <zky.zhoukeyong@alibaba-inc.com>
Signed-off-by: zky.zhoukeyong <zky.zhoukeyong@alibaba-inc.com>
This commit is contained in:
Angerszhuuuu 2023-06-16 17:45:57 +08:00 committed by zky.zhoukeyong
parent fae96f73cb
commit ec2959fccb

View File

@ -464,11 +464,9 @@ private[celeborn] class Master(
if (worker == null) {
logWarning(s"Unknown worker $host:$rpcPort:$pushPort:$fetchPort:$replicatePort" +
s" for WorkerLost handler!")
return
} else {
statusSystem.handleWorkerLost(host, rpcPort, pushPort, fetchPort, replicatePort, requestId)
}
statusSystem.handleWorkerLost(host, rpcPort, pushPort, fetchPort, replicatePort, requestId)
if (context != null) {
context.reply(WorkerLostResponse(true))
}