You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2018/11/15 10:20:04 UTC

[GitHub] jiangxinlingdu opened a new issue #541: broker在存储数据并发问题

jiangxinlingdu opened a new issue #541: broker在存储数据并发问题
URL: https://github.com/apache/rocketmq/issues/541
 
 
   在CommitLog类中,putMessage的时候,
   MappedFile mappedFile = this.mappedFileQueue.getLastMappedFile();
   之后在putMessageLock.lock();在
    if (null == mappedFile || mappedFile.isFull()) {
                   mappedFile = this.mappedFileQueue.getLastMappedFile(0); // Mark: NewFile may be cause noise
               }
   如果有多个同时取到mappedFile 为null之后进入lock之后会创建2个MappedFile
   
   详情看:https://github.com/apache/rocketmq/pull/540

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services