rocksdb/utilities/blob_db
Mike Kolupaev 397ab11152 Improve Status message for block checksum mismatches
Summary:
We've got some DBs where iterators return Status with message "Corruption: block checksum mismatch" all the time. That's not very informative. It would be much easier to investigate if the error message contained the file name - then we would know e.g. how old the corrupted file is, which would be very useful for finding the root cause. This PR adds file name, offset and other stuff to some block corruption-related status messages.

It doesn't improve all the error messages, just a few that were easy to improve. I'm mostly interested in "block checksum mismatch" and "Bad table magic number" since they're the only corruption errors that I've ever seen in the wild.
Closes https://github.com/facebook/rocksdb/pull/2507

Differential Revision: D5345702

Pulled By: al13n321

fbshipit-source-id: fc8023d43f1935ad927cef1b9c55481ab3cb1339
2017-06-28 21:27:01 -07:00
..
blob_db_impl.cc Make "make analyze" happy 2017-06-28 15:42:27 -07:00
blob_db_impl.h Fix blob db compression bug 2017-06-14 13:56:42 -07:00
blob_db_options_impl.cc Update blob_db_test 2017-06-14 13:12:34 -07:00
blob_db_options_impl.h Update blob_db_test 2017-06-14 13:12:34 -07:00
blob_db_test.cc Make "make analyze" happy 2017-06-28 15:42:27 -07:00
blob_db.cc Blob storage pr 2017-05-10 15:14:44 -07:00
blob_db.h Update blob_db_test 2017-06-14 13:12:34 -07:00
blob_dump_tool.cc Improve Status message for block checksum mismatches 2017-06-28 21:27:01 -07:00
blob_dump_tool.h Simple blob file dumper 2017-05-23 10:42:59 -07:00
blob_file.cc Improve Status message for block checksum mismatches 2017-06-28 21:27:01 -07:00
blob_log_format.cc Simple blob file dumper 2017-05-23 10:42:59 -07:00
blob_log_format.h Simple blob file dumper 2017-05-23 10:42:59 -07:00
blob_log_reader.cc Simple blob file dumper 2017-05-23 10:42:59 -07:00
blob_log_reader.h Simple blob file dumper 2017-05-23 10:42:59 -07:00
blob_log_writer.cc Blob storage pr 2017-05-10 15:14:44 -07:00
blob_log_writer.h Blob storage pr 2017-05-10 15:14:44 -07:00