-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Even if always compatible is set, Consumers cannot be created #12721
Even if always compatible is set, Consumers cannot be created #12721
Conversation
@@ -378,6 +378,9 @@ public String getReplicatorPrefix() { | |||
|
|||
@Override | |||
public CompletableFuture<Void> checkSchemaCompatibleForConsumer(SchemaData schema) { | |||
if (SchemaCompatibilityStrategy.ALWAYS_COMPATIBLE.equals(schemaCompatibilityStrategy)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to move into checkConsumerCompatibility()
method?
@@ -270,6 +270,9 @@ private void checkCompatible(SchemaAndMetadata existingSchema, SchemaData newSch | |||
@Override | |||
public CompletableFuture<Void> checkConsumerCompatibility(String schemaId, SchemaData schemaData, | |||
SchemaCompatibilityStrategy strategy) { | |||
if (SchemaCompatibilityStrategy.ALWAYS_COMPATIBLE.equals(strategy)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is an enum, please use "=="
over all LGTM I left one comment |
Done |
@eolivelli PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
(cherry picked from commit c3da145)
(cherry picked from commit c3da145)
Motivation
When the Producer's schema is set to AUTO_PRODUCE_BYTES. Even if always compatible is set, Consumers cannot be created. And return Exception
Topic does not have schema to check
Documentation
no-need-doc