-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
Problem working with Kafka messages with Record keys in Zerocode version 1.3.28 and later #557
Comments
Hi @bfarrell-ibm |
Yes - the problem is still there as far as I am aware. I have not retested in recent days - but assume nothing has changed since i reported the issue. |
I'm a third-year undergraduate Computer Science major and I'd like to help out with this issue or a similar one. Do you think that this is probably doable for me? I haven't looked at the code yet but I will soon. |
Hello, if you identified the problem and the fix, can you raise a PR? @bfarrell-ibm , can you attach the request/response JSON scenario and the log output to the ticket description please? |
Hi @bfarrell-ibm is this issue was still open? |
Hi - sorry for the delayed response - i'm not working on this issue at present and needed to dig up some info. It appears to still be an issue.
Where the record is as follows
I tried on the latest ZC version - 1.3.35 - and it is still the same |
Okay no worries. I am checking the issues list to see which of those I can work on :) |
Hi, Is this issue still open? I would like to look into it. I’ve been reviewing the repo over the past few days and found some relevant details about this issue. To allow JsonComsume to read AVRO message functionality, some changes were made to the In the I have some local changes that address this parsing error, and I can raise a pull request for them. Additionally, I have a fix for a test case related to KafkaFilter, specifically
Let me know if you would like me to proceed with these changes. |
Hi - I believe the issue is still present - i am not aware of any other changes that have gone in which may have resolved it. If you have fix to propose I'd suggest implenting it. |
Yes sure, |
Thanks for the PR @omkar-shitole . |
Hello @omkar-shitole , Thanks for understanding 👋 |
Hello, Version comparison: Root cause: The error occurs when an Object type key is passed to ConsumerJsonRecord in v1.3.28, which expects a JsonNode adb raise exception. |
Correction to above: Previously, I missed the fact that there is a newly added method I would kindly suggest that @bfarrell-ibm ensure the record keys are functioning as expected. Once this is confirmed, it seems the ticket could be considered resolved. |
ok. Understood @omkar-shitole. Thanks for explaining this. I think, it's We can do couple of things now:
|
Yes. By referring to version 1.3.35, I mean to highlight a particular exception observed in the attached log file of the error stack in #557 (comment) |
Hi. Running on 1.3.43 appears to have a fix in for the issue. Running on 1.3.44 is also fine. Looking at the closed issues - i think the following issue was similar to my one. Some entries in logs now when running the test.
Thanks to everyone for you assistance. I think this issue can be closed. |
Thanks @bfarrell-ibm for the confirmation. Appreciate you've captured the log-entries too as evidence 👍 . Closing this issue now. 🔐 Improvement PRs related to unit test coverages are welcome 👋 . When ready, please watch the CI status and tag the collaborators. @omkar-shitole , added you as collaborator now for you to review other PRs and enable/approve CI builds in this repo. |
Thank you so much for adding me as a collaborator! I’ve accepted the invitation and will start reviewing the PRs and enabling/approving CI builds as needed. |
Hi.
I have been executing kafka tests on older versions of kafka without having any issues but recently tried upgrading to more recent version - but have hit a problem when kafka messages with a key (containing dashes) is present.
ava.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.RuntimeException: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('a' (code 97)): Expected space separating root-level values at [Source: (String)"326e9aff-9767-46a9-a5e9-22c339389da7"; line: 1, column: 7]
The record has uses a request id as the key
The messages are processed fine with 1.3.27 - so something must have changed in the 1.3.28 version which is leading to this exception.
Could anyone advise what might be the problem?
I found something online which possibly might be related (similar error returned)
https://discuss.aerospike.com/t/root-level-value-error-when-using-aerospike-inbound-kafka-connector-with-librdkafka/6903
Kafka Key Error - Root level value error when using Aerospike Inbound Kafka Connector with librdkafka - Connectors - Aerospike Community Forum.pdf
The text was updated successfully, but these errors were encountered: