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/16 02:34:15 UTC

[GitHub] jiangxinlingdu commented on issue #543: When first Store message mappedFile is null ,Concurrency create will more one mappedFile

jiangxinlingdu commented on issue #543: When first Store message mappedFile is null ,Concurrency create will more one mappedFile
URL: https://github.com/apache/rocketmq/pull/543#issuecomment-439261658
 
 
   > @jiangxinlingdu The code is better in the lock. But currently, the following code:
   > `if (null == mappedFile || mappedFile.isFull()) { mappedFile = this.mappedFileQueue.getLastMappedFile(0); // Mark: NewFile may be cause noise }`
   > will prevent creating duplicated mapped file. So it has no defects finally.
   
   ok

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