Details
Description
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.
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(); }