315157973 commented on a change in pull request #9900:
URL: https://github.com/apache/pulsar/pull/9900#discussion_r593886780
##########
File path:
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/cache/impl/MetadataCacheImpl.java
##########
@@ -166,7 +166,7 @@ private MetadataCacheImpl(MetadataStore store,
MetadataSerde<T> serde) {
T newValueObj;
byte[] newValue;
try {
- newValueObj = modifyFunction.apply(currentValue);
+ newValueObj =
modifyFunction.apply(serde.deserialize(serde.serialize(currentValue)));
Review comment:
A comment has been added.
Now I just let the write operations of the same namespace be executed by the
same thread, and will not lock, so there will be no deadlock problem
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]