-
Notifications
You must be signed in to change notification settings - Fork 353
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
java.util.concurrent.CancellationException: Disposed when disposing flux from channel communication in tests #1047
Comments
@mkrzywanski can your try to add to your main method a line with |
Since it appears in tests, I have added it in my Adding |
@mkrzywanski Also, can you try to reproduce the same just with a pure rsocket to reduce the problem surface? |
I can give it a try, but I am not that familiar with rsocket api yet as I started using it today. |
It seems that the error is caused when cancelling the |
I have created a sample application which uses
channel
style communication. Unfortunatelly when cancelling the subscription from the tests I receive an exception :stacktrace
Expected Behavior
The exception is not thrown on channel subscription cancellation.
Actual Behavior
Exception is thrown.
Steps to Reproduce
Sample application - https://github.com/mkrzywanski/rsocket-reactive-chat. Just run
user1ShouldGetMessagesFromUser2
test.Your Environment
Library versions are listed in the provided project.
Platform (eg. JVM version (
javar -version
) or Node version (node --version
)):openjdk 17.0.1 2021-10-19
OpenJDK Runtime Environment Temurin-17.0.1+12 (build 17.0.1+12)
OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (build 17.0.1+12, mixed mode, sharing)
OS and version (eg
uname -a
): Ubunut 20The text was updated successfully, but these errors were encountered: