Skip to content

MagicMismatch warning #1021

Discussion options

You must be logged in to vote

Hi. Thanks for asking.

This warning can be triggered by various reasons, but none of them is a big deal:

  1. foyer pre-allocate file space on init to reduce runtime overhead. On recovery, if foyer tries to detect if a region has data, this warning can be triggered if the region is not written and holds random data.
  2. Last time foyer didn't close gracefully. The last batch of data of each flusher was partially written.
  3. The last batch written by foyer was not synced (e.g. fsync(2), fdatasync(2)), and some data corrupted.

As a cache system, it is fine to lose some data if the ratio is low enough (at most the last batch). So don't worry about it.

Btw, do you feel the warning confusing? If so, I'l…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@debajyoti-truefoundry
Comment options

@MrCroxx
Comment options

@debajyoti-truefoundry
Comment options

@MrCroxx
Comment options

Answer selected by debajyoti-truefoundry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants