-
Notifications
You must be signed in to change notification settings - Fork 33
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
TCK: Coupled operator vs rule 2.3 #131
Comments
I don't think this violates 2.3 because you're not calling I'm not sure what you mean by "parallel" stream. As I read it, the couple operator is a processor (and therefore has an upstream and a downstream), when you create it, you pass in a Subscriber In the scenario you're talking about,
I think rule 2.3 would only apply if you were to try to call |
Yes but TCK test for rule 2.3 doesn't care about originating stream, it just looks for method called "onComplete" in call stack. Rule 2.3 should not be applied to coupled processor because its publisher and subscriber are not subscribed to each other right? |
@danielkec Agreed. We need to fix that in the TCK, or if possible improve the detection. |
Related issue: reactive-streams/reactive-streams-jvm/issues/460 |
* eclipse/microprofile-reactive-streams-operators#131 Signed-off-by: Daniel Kec <[email protected]>
I wonder how they are going to enforce rule 2.3 at all. Subscriptions are meant to be used concurrently. Plenty of rules specifically allowing Rule 1.6 is the rule that makes sense. Once In other words, 2.3 is moot. |
* eclipse/microprofile-reactive-streams-operators#131 Signed-off-by: Daniel Kec <[email protected]>
The TCK checked for any method named Fix posted to the TCK: reactive-streams/reactive-streams-jvm#483 |
Waiting for Reactive Streams TCK release and then consume it. |
Coupled operator needs to signal cancel to parallel stream's upstream on its completion, but rule 2.3 forbids direct call from onComplete to cancel. Since the streams are actually parallel is the rule 2.3 and its tck test actually applicable? Same goes from onError->cancel call.
There was already discussion on https://gitter.im/eclipse/microprofile-reactive#
The text was updated successfully, but these errors were encountered: