mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Remove the RAY_CHECK in Worker::Port() (#9348)
This commit is contained in:
parent
a98cd0670e
commit
c89b59cf48
1 changed files with 6 additions and 1 deletions
|
@ -65,7 +65,12 @@ Language Worker::GetLanguage() const { return language_; }
|
|||
const std::string Worker::IpAddress() const { return ip_address_; }
|
||||
|
||||
int Worker::Port() const {
|
||||
RAY_CHECK(port_ > 0);
|
||||
// NOTE(kfstorm): Since `RayletClient::AnnounceWorkerPort` is an asynchronous
|
||||
// operation, the worker may crash before the `AnnounceWorkerPort` request is received
|
||||
// by raylet. In this case, Accessing `Worker::Port` in
|
||||
// `NodeManager::ProcessDisconnectClientMessage` will fail the check. So disable the
|
||||
// check here.
|
||||
// RAY_CHECK(port_ > 0);
|
||||
return port_;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue