-
Notifications
You must be signed in to change notification settings - Fork 237
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
Reconnect on every exception from conn #173
Comments
Are you by any chance using |
@Drizzt1991 No we are using default |
@Drizzt1991 What do you think about that problem? I could use |
@Artimi Hi there, sorry for the long response. |
@Artimi The deal here is that you got |
And could you confirm, that there's no |
Hey @Drizzt1991 thanks for the response. I again walk through the logs and found that there was
Second occurrence was similar:
As I'm looking at it now I think that there might be some help from my side. We are calling |
@Drizzt1991 It seems that since we fixed our error with |
@Artimi Hey, so I still could not find how you managed to get a |
* Fixed retry problem in Producer, when buffer is not reset to 0 offset. Thanks to @ngavrysh for the fix in Tubular/aiokafka fork. (issue #184) * Fixed how Producer handles retries on Leader node failure. It just did not work before... Thanks to @blugowski for the help in locating the problem. (issue #176, issue #173) * Fixed degrade in v0.2.2 on Consumer with no group_id. (issue #166)
Hi,
we've encountered again the problem with stale connection that does not reconnect. First I get some an error in
AIOKafkaClient.send()
fromAIOKafkaConnection.send()
method.This may happen and we should be able to recover. However, we do not reconnect and in some time after this we start to get exceptions from
MessageAccumulator
that is full and not drained:I was thinking that we could do the same thing that was done in #149: when there is any error from
AIOKafkaConnection.send()
close connection which is then reconnected. Now it would wrap whole methodAIOKafkaConnection.send()
and if any exception was raised from this function we would close the connection. This approach would solve this for every usage ofAIOKafkaConnection.send()
in the code (I found 2 inFetcher
, 1 inGroupCoordinator
and 1 inAIOKafkaClient
). However, I'm not sure if there could some case that in infinite loop reopens connection because of some recurrent error.What do you think about that? I'm willing to implement this on my own if you think it is a good idea.
aiokafka version: 0.2.2
kafka version: 0.9.0
The text was updated successfully, but these errors were encountered: