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

reactor.core.Exceptions$BubblingException thrown if exception is thrown in subscribe #212

Closed
madgnome opened this issue Mar 15, 2018 · 0 comments
Milestone

Comments

@madgnome
Copy link
Contributor

This code should emit a CircuitBreakerOpenException instead we get a reactor.core.Exceptions$BubblingException

    @Test
    public void shouldEmitErrorWithCircuitBreakerOpenException() {
        circuitBreaker.transitionToOpenState();
        StepVerifier.create(
                Mono.error(new IOException("BAM!"))
                        .transform(CircuitBreakerOperator.of(circuitBreaker)))
                .expectError(CircuitBreakerOpenException.class)
                .verify(Duration.ofSeconds(1));

        assertNoRegisteredCall();
    }

( found by https://stackoverflow.com/questions/49276946/resilience4j-how-to-handle-errors-when-using-a-circuit-breaker-in-a-spring-webfl )

madgnome added a commit to madgnome/resilience4j that referenced this issue Mar 15, 2018
RobWin pushed a commit that referenced this issue Mar 15, 2018
#213)

* #212 reactor.core.Exceptions$BubblingException thrown if exception is thrown in subscribe

* #35 Fix Codacity issues
RobWin pushed a commit that referenced this issue Mar 15, 2018
…cuitBreakerException is thrown when you subscribe to Flux.error.
RobWin pushed a commit that referenced this issue Mar 15, 2018
…ror is propagated when you subscribe to Flux.error, but the error is not thrown onSubscribe.
@RobWin RobWin added this to the 0.12.1 milestone Mar 15, 2018
madgnome added a commit to madgnome/resilience4j that referenced this issue Mar 15, 2018
Check that we are getting the resilience exception even when the source
will throw an exception (not on subscribe)
RobWin pushed a commit that referenced this issue Mar 16, 2018
Check that we are getting the resilience exception even when the source
will throw an exception (not on subscribe)
@RobWin RobWin closed this as completed Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants