Skip to content

CircuitBreaker cannot close during constant traffic #99

@wojciech-piotrowiak

Description

@wojciech-piotrowiak

I'm not sure if this is a bug, I tried find a help on stackoverflow, but without success: link

In a few words I have a module that is trying to connect other server by REST and use CircuitBreaker between. Frequency will be configured with Cron, but let assume 10 seconds. During tests I find out that if error count is equal to maxAttempts then it is not possible that CircuitBreaker will close if requests are going with the same frequency. If there is a pause between requests that is as long as resetTimeout then circuit is closing again.

I created simple Java project with test that reproduce this problem here: github
I also managed to create similar simulator with Hystrix and it runs without any problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions