You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that during log replay the log reader reads a column number "2" even if there is only a single column. I am not sure what causes the error, the log replay should validate log using the checksum and not read garbage data. I plan to investigate this further in the next few days.
The text was updated successfully, but these errors were encountered:
I have found the cause: the log checksum validation is only done when the END_RECORD log entry is read. Before that LogReader::next might return garbage without any explicit error.
Tpt
added a commit
to Tpt/parity-db
that referenced
this issue
Oct 5, 2022
If the I/O fails in the middle of a commit processing it seems it possible to end up with a corrupted database.
Here is a test to reproduce the bug (with the
instrumentation
feature enabled):Log:
It seems that during log replay the log reader reads a column number "2" even if there is only a single column. I am not sure what causes the error, the log replay should validate log using the checksum and not read garbage data. I plan to investigate this further in the next few days.
The text was updated successfully, but these errors were encountered: