schema-registry icon indicating copy to clipboard operation
schema-registry copied to clipboard

Loss of `InvalidConfigurationException` in favor of `SerializationException` in v7.7.1

Open fdelsert-dkt opened this issue 4 months ago • 0 comments

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.

fdelsert-dkt avatar Sep 24 '24 10:09 fdelsert-dkt