Denovo1998 opened a new pull request, #17449:
URL: https://github.com/apache/pulsar/pull/17449

    Fixes #17354
   
   ### Motivation
   
   *Fixed the failure to use schema to create consumer after using AUTO-CONSUME 
consumer to subscribe an empty topic, and Broker returned the error message as  
`IncompatibleSchemaException("Topic does not have schema to check")`.*
   
   ### Modifications
   
   *In PersistentTopic::addSchemaIfIdleOrCheckCompatible, when there is an 
active consumer, but the consumer is using the AUTO_CONSUME schema to subscribe 
to the topic. Continuing to create a schema consumer to subscribe to the topic 
will fail.*
   
   -  When `numActiveConsumers != 0`, and check the schema of the currently 
existing consumers is AUTO_CONSUME schema.
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   ### Documentation
   
   Check the box below or label this PR directly.
   
   Need to update docs? 
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
     
   - [x] `doc-not-needed` 
   (Please explain why)
     
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)


-- 
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