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

Make dead brokers die harder #548

Merged
merged 1 commit into from
Oct 1, 2015
Merged

Make dead brokers die harder #548

merged 1 commit into from
Oct 1, 2015

Commits on Sep 30, 2015

  1. Make dead brokers die harder

    When a broker gets an error trying to receive a response (either from the
    network layer, or from failing to parse the minimal global header), it should
    just abandon ship and die. Save that error and return it immediately for any
    further requests we might have made.
    
    - The vast majority of the time the connection is going to be hosed anyways, if
      nothing else by being out-of-sync on correlation IDs (which we don't handle
      and which doesn't seem particularly urgent).
    - All of Sarama's built-in callers (producer/consumer/offset-manager)
      immediately `Close` a broker when they receive one of these errors anyways, so
      all this does is speed up that in the common case.
    
    *If* one of these errors is recoverable, and *if* there is user-space code
    somewhere which actually tries to recover in one of those cases, then that code
    would break.
    
    This neatly satisfies one of the XXX comments I left in about this issue from
    way back in 2013. The TODOs about correlation ID matching are still present.
    eapache committed Sep 30, 2015
    Configuration menu
    Copy the full SHA
    b51603a View commit details
    Browse the repository at this point in the history