Repository navigation
[core] Remove gcs addr updater in core worker. - #24747
Conversation
|
Btw cc @WangTaoTheTonic for the visibility |
|
Interesting..., it seems there is another bug depending on this CHECK failure to crash worker. |
|
Do you happen to know why the raylet is zomebie in this case? |
The reason is because the process which starts it doesn't claim for the result. It should be the pytest. Another way might be just to fix this test. How do you think about that? |
|
I see. So to make sure I fully understood; Before: Now: Is this correct? In this case, including zombie process checking to the raylet seems to be a more robust solution. Since zombie basically means the process is dead IIUC. I think running ray with pytest is also pretty a common use case! |
| } | ||
| return true; | ||
| #else | ||
| if (kill(pid, 0) == -1 && errno == ESRCH) { |
There was a problem hiding this comment.
Can we have cpp unit test? I guess it should be pretty easy to verify it if it works on both Mac & Linux correctly?
There was a problem hiding this comment.
No, only for Linux here. Mac doesn't have proc and Mac test not fail as well.
| int rpid = 0; | ||
| char rcmd[32]; | ||
| char rstatc = 0; | ||
| RAY_CHECK(fscanf(fpstat, "%d %30s %c", &rpid, rcmd, &rstatc) == 3); |
There was a problem hiding this comment.
nit: should we tolerate the read failure case?
There was a problem hiding this comment.
This is something defined in linux kernel: https://linux.die.net/man/5/proc which is very stable.
In this case, I think if we fail, we should fail early.
|
Mac has the same issue. But I don't know how to detect that in mac. |
|
@iycheng hmm should we just send a RPC instead of checking process alive? |
|
but I am okay with just fixing tests + adding zombie process detecting logic to this PR (with an open issue) |
|
@rkooo567 My concern is that rpc seems more complicated. |
|
mac started to fail now. let me find another way to fix this. 😅 |
|
I just notice test_reconnection & test_scheduling_2 also failed on linux due to timeout. Maybe they are because of the same reason here. |
|
Pretty bad... more tests failed. Investigating. |
|
Lmk if you'd like to do pair debugging or sth! |
|
@rkooo567 Thanks for the offer. But it's already fixed (wait if we remove node in cluster utils). I'm just waiting for the tests. |
Why are these changes needed?
Since we are using domain name resolution to get the new address of GCS, gcs addr updator is not necessary any more. This PR removed that.
Related issue number
Checks
scripts/format.shto lint the changes in this PR.