Git Product home page Git Product logo

Comments (7)

twmb avatar twmb commented on June 28, 2024

This is failing before a fetch is even issued. Currently, KeepRetryableFetchErrors only applies to errors that are returned from an actual FetchResponse (not MetadataResponse). I don't see a way in the client to hook into that right now. I'm not sure where this would necessarily fit... I wouldn't want to trigger a fetch error whenver there's a metadata load error, but there's also no real way to hook into metadata errors while consuming at the moment (unless I'm forgetting something)...

from franz-go.

jadamscn avatar jadamscn commented on June 28, 2024

Thanks for your response.

Would something like a OnMetadataResponsError callback option be a workable pattern?

from franz-go.

twmb avatar twmb commented on June 28, 2024

I think that'd work, and I also wonder if franz-go should bubble errors from metadata updates as well (i.e. inject a fake fetch)

from franz-go.

jadamscn avatar jadamscn commented on June 28, 2024

I'm facing the same issue for dialer errors too. I am not sure if this is the same root cause; if it is not I'm happy to open a different issue.

If I set my seedbrokers to an address that results in a connection unreachable, connection refused, resolution failure, etc, it warns about the error but continues to try indefinitely to connect. I understand all these errors could be temporary and retryable, but it retries even if I give it an invalid address that will never work - e.g. 10.0.0.257. The dialer error in this case is no such host.

I understand NewClient has lazy initialization so it returns a nil error before the network error has occurred, but I'm not sure of a workaround at this stage. Maybe client.Ping() ?

from franz-go.

twmb avatar twmb commented on June 28, 2024

client.Ping will help that use case, yes

from franz-go.

twmb avatar twmb commented on June 28, 2024

Metadata topic or partition failures now inject fake fetches; retryable topic or partition errors now inject fake fetches if KeepRetryableFetchErrors is used. This is in a2340eb

from franz-go.

twmb avatar twmb commented on June 28, 2024

I did not go the route of adding a new callback -- I think injecting a fake fetch is better here.

from franz-go.

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.