-
Notifications
You must be signed in to change notification settings - Fork 149
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
Support Supervision.restart for SubFlow's #981
base: main
Are you sure you want to change the base?
Support Supervision.restart for SubFlow's #981
Conversation
0f472e9
to
e555122
Compare
stream/src/main/scala/org/apache/pekko/stream/impl/fusing/StreamOfStreams.scala
Outdated
Show resolved
Hide resolved
} else { | ||
// Start draining | ||
if (!hasBeenPulled(in)) pull(in) | ||
decider(cause) match { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the cause can be NoMoreElementsNeeded | StageWasCompleted
should test that first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this being tested in a different way later down with isClosed
/hasBeenPulled
? Also I had a look at parts of the Pekko codebase that implements Supervision.restart
and I don't see NoMoreElementsNeeded | StageWasCompleted
being tested in this way.
This doesn't mean its wrong, but if thats the case then testing NoMoreElementsNeeded | StageWasCompleted
would be unique to SubFlow
and I am not sure why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e555122
to
ec6e2d5
Compare
@He-Pin @jxnu-liguobin @Roiocam @raboof So I just noticed that for Due to this I will set the PR to blocked and make another issue on this point |
I'm planning to cut an RC for 1.1.0-M1. This will likely not be in it - but can be included in 1.1.0-M2. |
There is an actual bug with the functionality introduced in #252, i.e. This needs to be solved for 1.1.0, ideally in |
Bug made at #1205 |
is there a chance that we could revert #252 and try a full change for 1.1.0-M2? |
We are actually using this feature in production so I would try and avoid that. If fixing the bug ends up taking too long I would propose we fix it in 1.1.0-M2 since no one right now is actually relying on |
I'm only to delaying the 1.1.0-M1-RC1 until next week if this a reasonable chance that this can be addressed soon. |
Agreed |
7a81112
to
ab934dc
Compare
ab934dc
to
186f1dc
Compare
So I had a look at this after it was unblocked and it does seem to be harder than normal, this is because a new Furthermore its not just @pjfanning @He-Pin @Roiocam wdyt? |
Is this related to #1205 ? |
No this is something else, its a new feature change |
Provide support for restarting subflow.