Skip to content

Avoid unhandled failure reporting in merge - #3814

Open
sanketpatel32 wants to merge 4 commits into
typelevel:mainfrom
sanketpatel32:devin/1796313014-merge-report-failure
Open

sanketpatel32 wants to merge 4 commits into
typelevel:mainfrom
sanketpatel32:devin/1796313014-merge-report-failure

Conversation

@sanketpatel32

Copy link
Copy Markdown

Fixes #3812

Summary

  • Keep the merged upstreams' terminal Either as the waitForBoth fiber result instead of failing that fiber.
  • Rethrow that terminal result when the bracket finalizer joins the fiber, preserving downstream error propagation.
  • Add a regression test with a custom IORuntime failure reporter. The test observed 39 unhandled reports across 2000 iterations before the fix.

Tests

  • sbt coreJVM/testOnly fs2.StreamMergeSuite
  • sbt scalafmtCheckAll
  • sbt coreJVM/headerCheck
  • sbt coreJS/Test/compile

Scala Native was not run because its s2n toolchain is unavailable on this machine.

This branch has not been deployed

No deployments
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.

Stream.merge reports upstream error as unhandled fiber failure and also raises it downstream

1 participant