BramVanImpeAc opened a new issue #13804:
URL: https://github.com/apache/pulsar/issues/13804


   **Describe the bug**
   Using version 2.9.0, connecting with a producer to a topic using 
ALWAYS_COMPATIBLE results in the following error: java.lang.RuntimeException: 
Writing to a topic which have incompatible schema.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   
   1. Namespace that topic belongs to is configured with settings:
   "schema_compatibility_strategy" : "ALWAYS_COMPATIBLE",
   "is_allow_auto_update_schema" : true,
   "schema_validation_enforced" : false,
   2. The topic has no schemas, producers or consumers registered.
   3. Consumer connects with the topic and register a STRING schema.
   4. Producer connects to the same topic and tries to register a JSON schema.
   5. Producer throws error java.lang.RuntimeException: Writing to a topic 
which have incompatible schema
   
   **Expected behavior**
   Since the compatibility strategy is set to "ALWAYS_COMPATIBLE", the schema 
registration is allowed.
   
   **Additional context**
   Doing it the other way round (first connecting with producer (using JSON 
schema) and then with consumer(using STRING schema)) works as expected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to