Comments (7)
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.
Thanks for your response.
Would something like a OnMetadataResponsError callback option be a workable pattern?
from franz-go.
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.
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.
client.Ping will help that use case, yes
from franz-go.
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.
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)
- PollFetches take long time for the first fetch HOT 2
- question about sync=>async=>sync messaging HOT 1
- add ability to provide own member id HOT 3
- Produce Latency Spikes Due To Race Condition When Brokers Are Scaled Down HOT 6
- TXN: error beginning transaction: invalid attempt to begin a transaction while already in a transaction HOT 3
- Clarify producer batch config, once again HOT 3
- [Question] Checking client state before using it HOT 1
- Confluent: Unable to create a topic due to policy violation HOT 3
- How to fetch zero records without waiting HOT 1
- GroupTransactSession Close hangs, preventing restart HOT 4
- Use EOS sessions with BlockRebalanceOnPoll HOT 2
- ProduceSync returning "context canceled" error when parent context hasn't been cancelled HOT 3
- Is there a way to limit consumer PollRecords buffered fetches by size? HOT 1
- Question: Why does kgo.StopProducerOnDataLossDetected() exist? HOT 2
- Incorrect documentation regarding sarama partitioner compatibility SaramaCompatHasher HOT 4
- Feature request: expose metadata to the user HOT 2
- Documentation request / question HOT 1
- RequestTimeoutOverhead appears to override Context cancellation HOT 1
- Broker Throttling
- Retry fetched records on handle error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from franz-go.