Fix flaky optimistic prefill retry test (#28995)

Co-authored-by: cctry <cctry@fb.com>
This commit is contained in:
cctry
2026-06-23 00:18:01 -07:00
committed by GitHub
co-authored by cctry
parent 219742c394
commit 743ce88bc5
+4 -1
View File
@@ -361,7 +361,10 @@ class PrefillBootstrapQueue:
indices_to_remove.add(i)
req.time_stats.set_wait_queue_entry_time()
elif poll == KVPoll.WaitingForInput:
if not self.finalize_bootstrap(req):
if should_force_retry(req): # skip checking for testing
if not self.ensure_metadata_buffer(req):
continue # no more metadata buffer
elif not self.finalize_bootstrap(req):
continue
bootstrapped_reqs.append(req)
indices_to_remove.add(i)