Skip to content

Commit a34c16a

Browse files
Merge branch 'use-string-view' of https://github.com/MuhammadSaif700/ray into use-string-view
2 parents 37d39cb + 8d11de8 commit a34c16a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/ray/serve/_private/deployment_state.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3350,6 +3350,11 @@ def check_and_update_replicas(self):
33503350
if (
33513351
active_replicas
33523352
and self._curr_status_info.status == DeploymentStatus.HEALTHY
3353+
# Skip consistency check if there are STARTING replicas. During node
3354+
# migration, new replicas are created in STARTING state (without ranks)
3355+
# after the status is set to HEALTHY. Running the consistency check
3356+
# with STARTING replicas causes "active keys without ranks" error.
3357+
and self._replicas.count(states=[ReplicaState.STARTING]) == 0
33533358
):
33543359
replicas_to_reconfigure = (
33553360
self._rank_manager.check_rank_consistency_and_reassign_minimally(

0 commit comments

Comments
 (0)