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

Mutiny subscription is not cancelled when grpc client is cancelled #41776

Open
akastyka opened this issue Jul 9, 2024 · 3 comments
Open

Mutiny subscription is not cancelled when grpc client is cancelled #41776

akastyka opened this issue Jul 9, 2024 · 3 comments
Labels

Comments

@akastyka
Copy link

akastyka commented Jul 9, 2024

Describe the bug

Having a grpc service which returns Multi and grpc client which is cancelled after some time, grpc service continue to produce items (looks similar to #13988)

    public Multi<GreetingResponse> greeting(Empty request) {
        return Multi.createFrom().ticks().every(
                Duration.ofSeconds(2)).invoke(x -> {
            System.out.println(Thread.currentThread().getName() + "-" + Instant.now().getEpochSecond());
        })
                .onItem().transform(x -> GreetingResponse.newBuilder().setId(x).build());
    }

Expected behavior

Grpc service is cancelled

Actual behavior

Grpc service continue to produce messages

How to Reproduce?

No response

Output of uname -a or ver

22.04.2-Ubuntu

Output of java -version

Temurin-21.0.2+13

Quarkus version or git rev

3.11.0

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 8.6

Additional information

No response

@akastyka akastyka added the kind/bug Something isn't working label Jul 9, 2024
Copy link

quarkus-bot bot commented Jul 9, 2024

/cc @alesj (grpc), @cescoffier (grpc,mutiny), @jponge (mutiny)

@akastyka
Copy link
Author

Is there any plans to fix it ?

@cescoffier
Copy link
Member

Yes, but cannot tell you want I (or someone else) will have the time to look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Out of scope
Development

No branches or pull requests

2 participants