[Bugfix][Failing Test] Fix nixl connector test when promt size < block size (#18429)

Signed-off-by: wwl2755 <wangwenlong2755@gmail.com>
This commit is contained in:
wwl2755 2025-05-21 00:41:44 -05:00 committed by GitHub
parent ad0012a0ac
commit d06dd72ba9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -259,6 +259,15 @@ class NixlConnectorScheduler:
# Loop through scheduled reqs and convert to ReqMeta.
for req_id, (req, block_ids) in self._reqs_need_recv.items():
assert req.kv_transfer_params is not None
# For the case where there are no remote blocks to pull
# (block_ids is empty), we don't need to schedule
# an async read on the worker side.
if not block_ids:
logger.debug(
"Skipping adding request %s to NixlConnectorMetadata, "
"as there are no remote blocks to pull", req_id)
continue
meta.add_new_req(
request_id=req_id,
local_block_ids=block_ids,