[
https://issues.apache.org/jira/browse/HBASE-22340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Somogyi resolved HBASE-22340.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.1.5
2.0.6
2.2.0
3.0.0
Thanks [~apurtell] for the review.
> 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: 3.0.0, 2.2.0, 2.1.2, 2.0.4
> Reporter: Peter Somogyi
> Assignee: Peter Somogyi
> Priority: Critical
> Fix For: 3.0.0, 2.2.0, 2.0.6, 2.1.5
>
>
> 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)