HBASE-16670 Make RpcServer#processRequest logic more robust
This commit is contained in:
parent
19bbf44554
commit
2ff2c0ba6e
|
@ -1860,6 +1860,12 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver {
|
||||||
param = builder.build();
|
param = builder.build();
|
||||||
}
|
}
|
||||||
offset += paramSize;
|
offset += paramSize;
|
||||||
|
} else {
|
||||||
|
// currently header must have request param, so we directly throw exception here
|
||||||
|
String msg = "Invalid request header: " + TextFormat.shortDebugString(header)
|
||||||
|
+ ", should have param set in it";
|
||||||
|
LOG.warn(msg);
|
||||||
|
throw new DoNotRetryIOException(msg);
|
||||||
}
|
}
|
||||||
if (header.hasCellBlockMeta()) {
|
if (header.hasCellBlockMeta()) {
|
||||||
buf.position(offset);
|
buf.position(offset);
|
||||||
|
|
Loading…
Reference in New Issue