[Bugfix][KV Connector][Mooncake] Suppress completion for empty pulls (#59347)
Signed-off-by: wangyicong <wangyicong@bytedance.com>
This commit is contained in:
@@ -2407,7 +2407,9 @@ class MooncakeConnectorWorker:
|
||||
continue
|
||||
# No race because we are in async loop.
|
||||
pull_meta.pull_tasks_count -= 1
|
||||
if pull_meta.pull_tasks_count == 0:
|
||||
# Empty pulls only release the producer's blocks; the consumer
|
||||
# did not enter WAITING_FOR_REMOTE_KVS.
|
||||
if pull_meta.pull_tasks_count == 0 and any(pull_meta.local_block_ids):
|
||||
self.finished_recving_reqs.add(pull_meta.d_req_id)
|
||||
|
||||
if ok_reqs:
|
||||
|
||||
Reference in New Issue
Block a user