Skip to content

Conversation

@clostao
Copy link
Contributor

@clostao clostao commented Oct 20, 2025

Why

The issue that this PR is tackling is that if an error happens within the consumer of a stream this will stall the stream due to the reactive approach of Readable streams.

What

This PR implements:

  • Introduced createErrorResilientStream in streamUtils.ts to detect stalled streams with a minimal health check API.
  • Wraps fs.createReadStream calls with this stream manager tool

@clostao clostao requested a review from jfrank-summit October 20, 2025 20:59
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment @cursor review or bugbot run to trigger another review on this PR

@clostao clostao changed the title Enhance file system cache stream handling feat: enhance file system cache stream handling Oct 20, 2025
@clostao clostao requested a review from jfrank-summit October 21, 2025 10:20
Copy link
Member

@jfrank-summit jfrank-summit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jfrank-summit jfrank-summit merged commit 4eed9f0 into main Oct 22, 2025
2 checks passed
@jfrank-summit jfrank-summit deleted the handle-stream-error branch October 22, 2025 16:33
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.

3 participants