-
Notifications
You must be signed in to change notification settings - Fork 67
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
Correlation id for response (526263) does not match request (0) error after IAM is enabled #51
Comments
Sorry about the delayed reply. |
This is the full error log for the two errors. 3 mins prior to the errors, I can see there is successful SASL authentication. Events were also being processed after the re-authentication until it fails. Since the issue happens very infrequent, I'm waiting to see when it happens again and if there is similar pattern. |
@mandy-yan-liu Thanks for the logs. As you saw in the logs, when IAM is used, clients are required to reauthenticate periodically. This periodic re-authentication was not happening before you turned on IAM. I wonder if the low rate of failures are related to these periodic re-authentications. I had a few more clarifying questions:
|
@sayantacC I'm also suspecting the error is related to the re-authentication, the specific
Thanks a lot for your help! |
@mandy-yan-liu In version 2.5 you might be able to catch the uncaught exception by using However, Kafka Streams added an easier to use Hope this helps. |
Closing due to inactivity. Please feel free to reopen. |
We have the application that was running without any issue before enable IAM. After IAM is configured, we started getting below errors in very low frequency.
"java.lang.IllegalStateException: Correlation id for response (526263) does not match request (0), request header: RequestHeader(apiKey=SASL_HANDSHAKE, apiVersion=1, clientId=ef958fc7-4d43-490d-aa3c-c1ba0d189003-StreamThread-1-restore-consumer, correlationId=0)
Encountered the following unexpected Kafka exception during processing, this usually indicate Streams internal errors:","error":{"stack":"org.apache.kafka.common.protocol.types.SchemaException: Error reading field 'responses': Error reading array of size 1398754643, only 5 bytes available
There are threads indicate that the mismatch of kafka server-client version would cause above errors, but why does it only happen when IAM is enabled?
Versions we use:
Kafka cluster version: 2.6.2
kafka-client version: 2.5.0
The text was updated successfully, but these errors were encountered: