Skip to content

Apply recommendations from Pekko 1.1.x Migration guide#12793

Merged
mkurz merged 1 commit intoplayframework:mainfrom
BEVOLTA:fix/pekko-stream-1.1.0-M1-supervision
Jul 8, 2024
Merged

Apply recommendations from Pekko 1.1.x Migration guide#12793
mkurz merged 1 commit intoplayframework:mainfrom
BEVOLTA:fix/pekko-stream-1.1.0-M1-supervision

Conversation

@gwak
Copy link
Contributor

@gwak gwak commented Jul 7, 2024

Pull Request Checklist

Helpful things

Purpose

This PR applies the recommendations from the Pekko migration guide from 1.0.x to 1.1.x. The Pekko sub stream cancellation strategy was defaulted to SubstreamCancelStrategy.drain in the 1.0.x branches. It now defaults to Supervision.stop which is an equivalent of SubstreamCancelStrategy.propagate. It causes the MultipartFormData parser to fail after the first form-data item encountered when using Pekko 1.1.x dependencies in user land.

Background Context

The change doesn't affect Play 3.0.4 users using the Pekko 1.0.x dependencies included with the framework it self. But it gets the framework ready for when the Pekko 1.1.x release is ready. It has the added benefit of making the usage of the "cancel on purpose as an early sub-stream exit" pattern more obvious.

References

Migration from Apache Pekko 1.0.x to 1.1.x
A PR from @pjfanning trying the Pekko 1.1.0-M1 release in Play 3 bringing those changes as well

@mkurz
Copy link
Member

mkurz commented Jul 8, 2024

Thanks @gwak, can you please run sbt formatCode to fix the formatting errors? Thanks!

@gwak gwak marked this pull request as ready for review July 8, 2024 07:16
@gwak gwak force-pushed the fix/pekko-stream-1.1.0-M1-supervision branch from 4e50cbc to 1f331df Compare July 8, 2024 07:47
@mkurz
Copy link
Member

mkurz commented Jul 8, 2024

Thanks!

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