Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "!str filter out elements without demands for Flow#collect operator" #31667

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

patriknw
Copy link
Member

Reverts #31617

It was a mistake to accept this change for collect. We didn't realize the full impact and the history that can be read in #18170

Actually, it changes the semantics in a way that makes Akka HTTP tests fail https://github.com/akka/akka-http/actions/runs/3249437505/jobs/5331839470

This reverts commit 434c0ab.

Copy link
Member

@johanandren johanandren left a comment

Choose a reason for hiding this comment

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

LGTM

@He-Pin
Copy link
Member

He-Pin commented Oct 14, 2022

There are some Flow operators which is doing the pulling on the prestart, seems a general guide should be :Flow/Source should be lazy?
Batch\Buffer will do the pulling when materialization too.

@johanandren
Copy link
Member

I think it needs to be a case-to-case decision, but in general operators should not detach/introduce their own buffers unless that is specifically needed for their logic.

@patriknw patriknw merged commit faa59df into main Oct 14, 2022
@patriknw patriknw deleted the wip-revert-collect-patriknw branch October 14, 2022 12:44
@He-Pin
Copy link
Member

He-Pin commented Oct 14, 2022

I think it needs to be a case-to-case decision, but in general operators should not detach/introduce their own buffers unless that is specifically needed for their logic.

Thanks for the clarification. @johanandren

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants