Skip to content

Make .splitWhen explicit with SubstreamCancelStrategy.drain#371

Closed
mdedetrich wants to merge 1 commit intoapache:mainfrom
mdedetrich:make-split-when-explicit
Closed

Make .splitWhen explicit with SubstreamCancelStrategy.drain#371
mdedetrich wants to merge 1 commit intoapache:mainfrom
mdedetrich:make-split-when-explicit

Conversation

@mdedetrich
Copy link
Contributor

@mdedetrich mdedetrich commented Dec 8, 2023

The context of this change is apache/pekko#252. I want to try and get that PR over the finish line for Pekko 1.1.0 and while that PR is not a binary breaking change it is a behaviour breaking change.

What this PR does is it makes any usage of splitWhen explicitly use SubstreamCancelStrategy.drain (which is the current default) so that if someone uses pekko-http with a future release of pekko 1.1.0 there won't be any behaviour change. Note that I am not entirely sure if this change makes sense or even if its necessary i.e. it may be the case that whatever SubstreamCancelStrategy you use it doesn't matter because the various SubFlow's cannot error (in which case this PR is pointless and can be closed) or it could also be that we really should be explicit about which SubstreamCancelStrategy to use for correctness reasons (i.e. if hypothetically an error in a SubFlow can occur then it should always be either SubstreamCancelStrategy.drain or SubstreamCancelStrategy.propagate)

@jrudolph @raboof @kerr Pinging you here since you have most of the domain knowledge.

@mdedetrich mdedetrich force-pushed the make-split-when-explicit branch from c919d79 to 0befeac Compare December 8, 2023 01:14
@mdedetrich
Copy link
Contributor Author

Im going to close this since the premise is premature, should tackle each of the cases individually if necessary.

@mdedetrich mdedetrich closed this Dec 28, 2023
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.

1 participant