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 2021/07/06 08:56:03 UTC

[GitHub] [rocketmq] kingjames223 opened a new issue #3129: MappedFile May cause message loss

kingjames223 opened a new issue #3129:
URL: https://github.com/apache/rocketmq/issues/3129


   
   I'm king,In the store module,MappedFile.java at flush.
   disk or storage failure (such as the very common file system read only), and the client still thinks that the transmission is normal. Until we found that the disk failure to restart the machine, because the message did not write successfully, and then the message was lost.
   ![image](https://user-images.githubusercontent.com/41317369/124571111-15ea8700-de7a-11eb-95c6-b424fa5f5dbe.png)
   
   


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] francisoliverlee edited a comment on issue #3129: MappedFile May cause message loss

Posted by GitBox <gi...@apache.org>.
francisoliverlee edited a comment on issue #3129:
URL: https://github.com/apache/rocketmq/issues/3129#issuecomment-876468270


   i think so some message may lost casuse of power-off.  messages can flush to disk synchronily by set 
   - message property: MessageConst.PROPERTY_WAIT_STORE_MSG_OK to true 
   - broker config : flushDiskType=FlushDiskType.SYNC_FLUSH
   
   POOR PERFORMANCE also
   
   
   code here:
   https://github.com/apache/rocketmq/blob/df1d93fc8859377b92ba87c6947911281656f355/store/src/main/java/org/apache/rocketmq/store/CommitLog.java#L957


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] odbozhou closed issue #3129: MappedFile May cause message loss

Posted by GitBox <gi...@apache.org>.
odbozhou closed issue #3129:
URL: https://github.com/apache/rocketmq/issues/3129


   


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] francisoliverlee edited a comment on issue #3129: MappedFile May cause message loss

Posted by GitBox <gi...@apache.org>.
francisoliverlee edited a comment on issue #3129:
URL: https://github.com/apache/rocketmq/issues/3129#issuecomment-876468270


   i think so some message may lost casuse of power-off.  messages can flush to disk synchronily by set 
   - message property: MessageConst.PROPERTY_WAIT_STORE_MSG_OK to true 
   - broker config : flushDiskType=FlushDiskType.SYNC_FLUSH
   
   code here:
   https://github.com/apache/rocketmq/blob/df1d93fc8859377b92ba87c6947911281656f355/store/src/main/java/org/apache/rocketmq/store/CommitLog.java#L957
   
   POOR PERFORMANCE also


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] francisoliverlee commented on issue #3129: MappedFile May cause message loss

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #3129:
URL: https://github.com/apache/rocketmq/issues/3129#issuecomment-876468270


   i think so some message may lost casuse of power-off.  messages can flush to disk synchronily by set 
   - message property: MessageConst.PROPERTY_WAIT_STORE_MSG_OK to true 
   - broker config : flushDiskType=FlushDiskType.SYNC_FLUSH
   
   POOR PERFORMANCE also


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org