-
Notifications
You must be signed in to change notification settings - Fork 437
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
Kafka: Offset commit (manual) failed #894
Comments
What offset are you trying to commit? I've looked up some issues in librdkafka and I've found:
Show sample code if possible. I've tried to see what the issue is, but it seems it's something between librdkafka & Kafka broker itself. |
@Steveb-p Hi, progress has been slow, sorry for late answer. I published it here: https://github.com/KonstantinCodes/messenger-kafka Hopefully it helps! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@KonstantinCodes @Steveb-p seeing the same issue after upgrading to Symfony 4.3 (and sroze/enqueue-messenger-transport 0.3.2). Everything was working fine before (enqueue 0.9.12, symfony 4.2.*, sroze/enqueue-messenger-transport 0.2.2) . Maybe this is due to sroze/messenger-enqueue-transport#75 ? |
@marcoreni yes, you should upgrade to at least |
This issue came up after upgrading to enqueue-messenger-transport 0.3.2, and the transport is currently unusable (after COMMITFAIL event, the consumer is not able to consume other messages and needs to be restarted). My configuration is similar as the one in the OP, therefore we're in the case of "automatic async commit" (where I assume offsets are correctly handled) |
@marcoreni I'll have a look at it then in the evening. If I'll not be able to figure out why it happens, I might ask folks on phprdkafka. They've made a couple new changes recently as well. |
@marcoreni We will probably need a small reproduction sample. You have upgraded enqueue to the latest version I assume? And you're not using enqueue-kafka directly, but rather through messenger adapter only? |
https://github.com/marcoreni/enqueue-kafka-894-repro Here you go. I tried to keep it as simple as possible, I just added two docker containers to make testing easier. My latest test was able to handle two messages (even if the COMMITFAIL was returned even for the first message:
Since it's a newly created project I'm using latest version for each package. (BTW, with this same repository you are also able to reproduce #893. You simply have to stop dispatching messages and wait :) ) |
@marcoreni Thanks, I'll look into it when I'm free from work :) |
Hi, the two issues #893 and #894 already existed before I made the PR. The PR basically just fixed the issue that the offset value was getting lost. |
@marcoreni just to let you know I'll have difficulty having a closer look on it before saturday, 07.09. I'm keeping it in the back of my head. |
Hi @Steveb-p , I noticed when testing the application of @marcoreni that when messenger execute the |
Any updates? I have this issue. What composer configuration is work? |
Hi, the new release with bugfix has not been released yet. In our project, we've changed |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@Steveb-p This should be closed, it's resolved. |
Whoopsie, sorry @marcoreni 😄 |
My consumer always fails to commit the offset:
Here is my Config:
Any ideas, why this is happening?
Tested with both heroku Kafka & CloudKarafka.
The text was updated successfully, but these errors were encountered: