-
Notifications
You must be signed in to change notification settings - Fork 287
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
Unable to produce to AWS MSK from AWS Lambda #513
Comments
I ran the same test case with the kafka crate and it works. So I'm pretty sure this issue is with rdkafka and/or the configuration of the client. Again, any hint of how to proceed would be nice, since the kafka crate does not seem to be maintained very actively. |
The result is a future, so you will also need to await that. Like here. Currently, it probably quits before really sending the record. |
The result is not a future, as far as I can tell. match producer.send(...).await {
Ok(_) => (),
Err(e) => println,
} block in the first place. The example you linked is simply wrapping the |
Fair enough, you could log the value of the result though, that hopefully points to the right direction. |
There is no result to log, that's the issue. The |
So it is looking likely that this is an issue with I tried the same test as my original post with python again. The first test I had stated was done with the kafka-python package, which is a python-native implementation of a kafka client. Today I tried a test with the confluent-kafka package which, like rust-rdkakfa, uses librdkafka. This test failed. Same behavior where the call to I will be reporting this at the librdkafka repo, referencing this issue. I'll leave it up to you whether to keep this issue open or not. I am still at a loss as to what to report other than "it works without librdkafka, but doesn't with it." |
Recommend that you enable debug logs, via |
Solved. Issue was that the broker had Two possible solutions
I went with 1 for testing purposes, probably will go for 2 in actual use. There is still an issue with approach 2. Even though it returns an error after the timeout, it doesn't tell you why the timeout happened, only that it did. You wouldn't be able to tell that the actual issue was with replication and acks configuration without the debug log. |
I'm trying to produce some messages to a topic in MSK and having issues. I have verified that this is a not a networking issue by creating a python replica of the lambda - with the same VPC and security group configuration; and the python code is able to produce to the topic without any issues.
All I've received from the rdkafka logs is as follows. There are no errors, the lambda just times out after 1 minute. Increasing the timeout does not help. Any suggestion on how to proceed from here would be appreciated.
The rust code:
And the python code that works:
The text was updated successfully, but these errors were encountered: