HBASE-19166 AsyncProtobufLogWriter persists ProtobufLogWriter as class name for backward compatibility
This commit is contained in:
parent
5d994a24fc
commit
bf5f034463
|
@ -108,6 +108,15 @@ public class AsyncProtobufLogWriter extends AbstractProtobufLogWriter
|
||||||
this.channelClass = channelClass;
|
this.channelClass = channelClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @return class name which is recognized by hbase-1.x to avoid ProtobufLogReader throwing error:
|
||||||
|
* IOException: Got unknown writer class: AsyncProtobufLogWriter
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
protected String getWriterClassName() {
|
||||||
|
return "ProtobufLogWriter";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void append(Entry entry) {
|
public void append(Entry entry) {
|
||||||
int buffered = output.buffered();
|
int buffered = output.buffered();
|
||||||
|
|
|
@ -38,6 +38,14 @@ public class SecureAsyncProtobufLogWriter extends AsyncProtobufLogWriter {
|
||||||
super(eventLoopGroup, channelClass);
|
super(eventLoopGroup, channelClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @return class name which is recognized by hbase-1.x to avoid ProtobufLogReader throwing error:
|
||||||
|
* IOException: Got unknown writer class: SecureAsyncProtobufLogWriter
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
protected String getWriterClassName() {
|
||||||
|
return "SecureProtobufLogWriter";
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
protected WALHeader buildWALHeader(Configuration conf, WALHeader.Builder builder)
|
protected WALHeader buildWALHeader(Configuration conf, WALHeader.Builder builder)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue