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

Loss of InvalidConfigurationException in favor of SerializationException in v7.7.1 #3287

Open
fdelsert-dkt opened this issue Sep 24, 2024 · 0 comments

Comments

@fdelsert-dkt
Copy link

fdelsert-dkt commented Sep 24, 2024

Hi,

After upgrading to the latest version (7.7.1), we noticed that the previous InvalidConfigurationException has been replaced by a SerializationException containing a RestClientException.
This introduces a regression in my project in how schema compatibility issues are handled.

Previously, the KafkaAvroSerializer would throw an InvalidConfigurationException when encountering a critical configuration issue, such as schema incompatibility (409).
After the upgrade, the same scenario now throws a SerializationException, which wraps a RestClientException.

Our current workaround involves catching the SerializationException and inspecting the RestClientException for error code. However, this feels like a less elegant solution compared to the prior approach with InvalidConfigurationException.

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

No branches or pull requests

1 participant