Skip to content

Commit

Permalink
[core] Fix session key check (ray-project#40468)
Browse files Browse the repository at this point in the history
Assert that they are equal, not the opposite.
  • Loading branch information
vitsai authored Oct 19, 2023
1 parent f905171 commit d6baf12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ray/_private/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ def _write_cluster_info_to_kv(self):
curr_val = self.get_gcs_client().internal_kv_get(
b"session_name", ray_constants.KV_NAMESPACE_SESSION
)
assert curr_val != self._session_name, (
assert curr_val == self._session_name.encode("utf-8"), (
f"Session name {self._session_name} does not match "
f"persisted value {curr_val}. Perhaps there was an "
f"error connecting to Redis."
Expand Down

0 comments on commit d6baf12

Please sign in to comment.