You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/11/11 02:48:18 UTC
[GitHub] [pulsar] aloyszhang commented on pull request #18293: [fix][schema] Fix creating lots of versions for the same schema
aloyszhang commented on PR #18293:
URL: https://github.com/apache/pulsar/pull/18293#issuecomment-1311163670
<img width="930" alt="image" src="https://user-images.githubusercontent.com/48062889/201251077-92c527e5-3869-4491-99be-d3e85d424913.png">
@codelipenghui This is another problem. The root cause is the concurrent access to zookeeper.
Before updating the `schemaLocator` on zk, it reads zk again. The purpose is to obtain the content of the existing locator to build the index information of the new locator, and the version will be +1.
If other threads updated the locator just before this point, it directly adds the position information of a new schema entry to the locator without exist check
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org