You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/12/19 12:09:00 UTC

[jira] [Commented] (HBASE-21492) CellCodec Written To WAL Before It's Verified

    [ https://issues.apache.org/jira/browse/HBASE-21492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16724946#comment-16724946 ] 

Hudson commented on HBASE-21492:
--------------------------------

Results for branch branch-2
	[build #1566 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/1566/]: (x) *{color:red}-1 overall{color}*
----
details (if available):

(/) {color:green}+1 general checks{color}
-- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/1566//General_Nightly_Build_Report/]




(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/1566//JDK8_Nightly_Build_Report_(Hadoop2)/]


(x) {color:red}-1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/1561//JDK8_Nightly_Build_Report_(Hadoop3)/]


(/) {color:green}+1 source release artifact{color}
-- See build output for details.


(/) {color:green}+1 client integration test{color}


> CellCodec Written To WAL Before It's Verified
> ---------------------------------------------
>
>                 Key: HBASE-21492
>                 URL: https://issues.apache.org/jira/browse/HBASE-21492
>             Project: HBase
>          Issue Type: Bug
>          Components: wal
>    Affects Versions: 1.2.7, 2.0.2
>            Reporter: BELUGA BEHR
>            Assignee: BELUGA BEHR
>            Priority: Critical
>             Fix For: 3.0.0, 1.5.0, 2.2.0, 2.1.2, 2.0.4, 1.4.10
>
>         Attachments: HBASE-21492-branch-1.patch, HBASE-21492.1.patch, HBASE-21492.2.patch, HBASE-21492.2.patch
>
>
> The cell codec class name is written into the WAL file, but the cell codec class is not actually verified to exist.  Therefore, users can inadvertently configure an invalid class name and it will be recorded into the WAL file.  At that point, the WAL file becomes unreadable and blocks processing of all other WAL files.
> {code:java|title=AbstractProtobufLogWriter.java}
>   private WALHeader buildWALHeader0(Configuration conf, WALHeader.Builder builder) {
>     if (!builder.hasWriterClsName()) {
>       builder.setWriterClsName(getWriterClassName());
>     }
>     if (!builder.hasCellCodecClsName()) {
>       builder.setCellCodecClsName(WALCellCodec.getWALCellCodecClass(conf));
>     }
>     return builder.build();
>   }
> {code}
> https://github.com/apache/hbase/blob/025ddce868eb06b4072b5152c5ffae5a01e7ae30/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AbstractProtobufLogWriter.java#L78-L86



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