Coder Social home page Coder Social logo

Redesign error processing about kafka4net HOT 1 OPEN

ntent avatar ntent commented on August 14, 2024
Redesign error processing

from kafka4net.

Comments (1)

vchekan avatar vchekan commented on August 14, 2024

Context

Initial idea of implementing error recovery was to have single point, in tcp connection object where all error recovery would be made.
But it turned out too low level, because depending on what this connection is doing, we might want different strategy for recovery.
When RecoveryMonitor tests either broker is available, we do not want any recovery and want fail fast instead.
Another issue is that currently only fetcher and producer are well protected, whereas earlier stages, such as connection, offset resolution,
metadata fetching are more fragile, or have to implement their own recovery, thus polluting the code.

Requirements

Fast reaction: consider partition failed immediately after tcp error, and not after many retries.
Remember to fail all request tasks which are waiting for responses.
While waiting for recovery, pay attention to changes in metadata
Work nicely with shutdown and drain logic

List of failure stages

  • In seed broker resolution
  • In offset resolution
  • In Metadata fetching
  • In recovery monitor
  • In produce message
  • In fetch message

from kafka4net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.