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

   ### Motivation
   
   The schema replication will break the data replication order while fetching
   the schema from the local cluster.
   
   
https://github.com/apache/pulsar/blob/8a6ecd7d4c9399bb7ce5a224ca854e4a71db79b1/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentReplicator.java#L366-L369
   
   The method getSchemaInfo() is an async method that will reverse the order in 
which messages are written.
   
   ### Modification
   
   Added a new state for replicator `fetchSchemaInProgress` which means the
   replicator had detected a new schema that needed to fetch the schema info
   from the local cluster. During the schema fetching, the replicator should
   pause the data replicator and resume after the schema has been fetched.
   
   ### Verification
   
   Updated the test to check the read message order.
   


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