-
Notifications
You must be signed in to change notification settings - Fork 812
Release tag 0.4.2: response from kafka is of unknown type while using kafka.Writer #487
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
Comments
Thanks a lot for reporting @riteshmodi! I left a bit of context relevant to this discussion in #488 |
I have the same problem. when I set , not panic
when I set , show:
|
I also get the same panic, except with 0.4.1 |
It seems that the 0.4 branch does not panic when kafka.Writer.RequiredAcks=kafka.RequireNone. Any thoughts on when this will become a released version? |
Actually I was talking nonsense. The 0.4 branch still has this problem. |
It seems that even though the Client.Produce() method has the following comment:
the async.await() method does not expect a nil Response. Changing that method to handle a nil Response removes the panic, although I don't know if there would be side-effects from this:
|
Created PR #504 for this issue |
Closing since the issue was addressed by #504 |
Describe the bug
When publishing the message using
kafka.Writer
from release tag v0.4.2 then I am getting error like this:panic: BUG: promise resolved with impossible value of type <nil>
and message is getting written to kafka successfully.Kafka Version
kafka_2.11-2.0.0
To Reproduce
Set up local kafka broker and send the message using following code:
Test code
Expected behavior
I am not sure. But I tried the code (provided in README) with release tag 0.4.0 and there is no issue.
Additional context
I tried to debug the issue. It seems to me that we are expecting response from kafka of type
type Response = protocol.Message
and we are getting different response. I checked console of kafka and zookeeper and there seems to be no issueStack trace of the error:
The text was updated successfully, but these errors were encountered: