Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MappedFile May cause message loss #3129

Closed
kingjames223 opened this issue Jul 6, 2021 · 1 comment
Closed

MappedFile May cause message loss #3129

kingjames223 opened this issue Jul 6, 2021 · 1 comment

Comments

@kingjames223
Copy link

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

@francisoliverlee
Copy link
Member

francisoliverlee commented Jul 8, 2021

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:

if (FlushDiskType.SYNC_FLUSH == this.defaultMessageStore.getMessageStoreConfig().getFlushDiskType()) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants