Block index corruption #6727

issue gerbilOFdoom openend this issue on September 27, 2015
  1. gerbilOFdoom commented at 2:36 pm on September 27, 2015: none

    If a computer shuts down while bitcoin core is running the entire block index is corrupted and requires reindexing from day 0. This process, at least for my computer, takes more than 10 hours.

    I’m not familiar with the code involving the filesystem, however there are methods that could be used to cache data temporarily and write to the disk in a safe way such as that only a small portion of data might be corrupted during power loss.

    This could be related to issue #5865

  2. sipa commented at 2:43 pm on September 27, 2015: member

    Bryson: we very extensively use caching, and only write data to disk when all data it depends on is also written, synchronously.

    When this error occurs, it is LevelDB (the low-level key value store we use) that reports a corruption, which is something that it is designed to withstand. Either this means a bug in LevelDB, in the operating system, or in the hardware.

    Or something we don’t know of course…

    Just to make it clear: the software is designed to not cause corruption during crashing. Personally, I have never ever seen a corruption, even when power loss occurs during synchronization. That doesn’t mean there is no bug of course in some situations, but it’s not as simple as changing the write pattern.

  3. gerbilOFdoom commented at 4:20 pm on September 29, 2015: none
    Okay. What information can I provide to help diagnose the cause?
  4. sipa commented at 6:30 pm on September 29, 2015: member
    First of all: what error are you getting, or what problem do you observe?
  5. gerbilOFdoom commented at 5:42 am on September 30, 2015: none

    When I restart bitcoin core after a system crash (usually power outage), the block chain must be reindexed - an overnight process.

    Next time it happens I’ll leave all the files as they are and zip them up for you to look at, if you’d like.

  6. laanwj commented at 9:01 am on September 30, 2015: member
    Does this happen on Windows? If so, this issue is a duplicate of #5610.
  7. gerbilOFdoom commented at 6:10 am on October 2, 2015: none
    This happens on Windows 10, yes
  8. gerbilOFdoom commented at 6:11 am on October 2, 2015: none
    Duplicate of #5610
  9. gerbilOFdoom closed this on Oct 2, 2015

  10. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-09-29 04:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me