Skip to content

fix: handle truncated batch stream with sequential GET fallback#1566

Merged
pzelasko merged 1 commit into
lhotse-speech:masterfrom
gaikwadabhishek:fix-batch-stream-truncation
Apr 14, 2026
Merged

fix: handle truncated batch stream with sequential GET fallback#1566
pzelasko merged 1 commit into
lhotse-speech:masterfrom
gaikwadabhishek:fix-batch-stream-truncation

Conversation

@gaikwadabhishek

Copy link
Copy Markdown
Contributor
  • catch StopIteration during batch result iteration and fall back to individual GET requests instead of crashing the DataLoader worker
  • use batch_stream_failed flag to skip dead iterator for remaining objects
  • reuse existing _get_object_from_moss_in() retry path for recovery
  • update test to verify fallback behavior instead of expecting crash

- catch StopIteration during batch result iteration and fall back
  to individual GET requests instead of crashing the DataLoader worker
- use batch_stream_failed flag to skip dead iterator for remaining objects
- reuse existing _get_object_from_moss_in() retry path for recovery
- update test to verify fallback behavior instead of expecting crash

Signed-off-by: Abhishek Gaikwad <gaikwadabhishek1997@gmail.com>
@gaikwadabhishek gaikwadabhishek force-pushed the fix-batch-stream-truncation branch from c6d9534 to 62d7f29 Compare April 14, 2026 18:04
@pzelasko pzelasko merged commit 49c5311 into lhotse-speech:master Apr 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants