Skip to content
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

Nakadi doesn't properly report errors when events cannot be consumed from a subscription #1028

Open
juhovuori opened this issue Apr 1, 2019 · 0 comments

Comments

@juhovuori
Copy link

A low-traffic event-type on Nakadi may cause subscription to enter a state where trying to read events from it returns to HTTP 200, and immediate closing of TCP connection. Apparently an error message is loogged about a stale subscription, but client has no way of telling what happened. A proper error message would make it possible to handle this automatically in client.

From @ferbncode in google chat: "For https://nakadi-ui-staging.aruha-test.zalan.do/#subscriptions/205ee6e5-acf2-4c1b-aa3d-d3ff1217e575, I see this in the logs org.zalando.nakadi.exceptions.runtime.InvalidCursorException: offset 00000000000000009 for partition 5 is unavailable. This might have happened because the unconsumed events of the subscription event type passed the retention period while the subscription stayed at the old offset. I guess Nakadi should not silently log and not return with 200."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants