https://github.com/apache/spark
Revision accfb39e4ddf7f7b54396bd0e35256a04461c693 authored by Dongjoon Hyun on 28 January 2024, 04:24:15 UTC, committed by Dongjoon Hyun on 28 January 2024, 04:25:45 UTC
This PR aims to fix `Master` to reject `/workers/kill/` request if `spark.decommission.enabled` is `false` in order to fix the dangling worker issue.

Currently, `spark.decommission.enabled` is `false` by default. So, when a user asks to decommission, only Master marked it `DECOMMISSIONED` while the worker is alive.
```
$ curl -XPOST http://localhost:8080/workers/kill/\?host\=127.0.0.1
```

**Master UI**
![Screenshot 2024-01-27 at 6 19 18 PM](https://github.com/apache/spark/assets/9700541/443bfc32-b924-438a-8bf6-c64b9afbc4be)

**Worker Log**
```
24/01/27 18:18:06 WARN Worker: Receive decommission request, but decommission feature is disabled.
```

To be consistent with the existing `Worker` behavior which ignores the request.

https://github.com/apache/spark/blob/1787a5261e87e0214a3f803f6534c5e52a0138e6/core/src/main/scala/org/apache/spark/deploy/worker/Worker.scala#L859-L868

No, this is a bug fix.

Pass the CI with the newly added test case.

No.

Closes #44915 from dongjoon-hyun/SPARK-46888.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit 20b593811dc02c96c71978851e051d32bf8c3496)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
1 parent a2854ba
History
Tip revision: accfb39e4ddf7f7b54396bd0e35256a04461c693 authored by Dongjoon Hyun on 28 January 2024, 04:24:15 UTC
[SPARK-46888][CORE] Fix `Master` to reject `/workers/kill/` requests if decommission is disabled
Tip revision: accfb39

README.md

back to top