Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1929

MP fault tolerance: circuit breaker never opens if there's a @Fallback

    Details

      Description

      Say I have a @CircuitBreaker method in my application, with a @Fallback:

      @CircuitBreaker
      @Fallback(MyFallback.class)
      public String peformSomeRequest() throws IOException {
          ...
      }
      

      When the method fails, I always get the fallback, which is right, and the circuit breaker never opens, which is wrong. It means that the circuit breaker fails to serve its ultimate purpose of not overloading failed external services.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                lthon Ladislav Thon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: