Peter Somogyi created HBASE-22340:
-------------------------------------

             Summary: Corrupt KeyValue is silently ignored
                 Key: HBASE-22340
                 URL: https://issues.apache.org/jira/browse/HBASE-22340
             Project: HBase
          Issue Type: Bug
          Components: wal
    Affects Versions: 2.0.4, 2.1.2, 3.0.0, 2.2.0
            Reporter: Peter Somogyi
            Assignee: Peter Somogyi


When a KeyValue is constructed from a corrupt byte array then 
IllegalArgumentException is thrown with a detailed message where the issue is 
in the array. This is part of a sanity check introduced in HBASE-21401.
However, this is not logged at this time and the exception goes up to 
ProtobufLogReader.readNext where it is caught, wrapped into EOFException and 
the processing of the current WAL file is stopped.
There is only a TRACE level log message that could indicate if something went 
wrong.

This will cause data loss without log message not just for the single corrupted 
KV but for the rest of the WAL file.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to