HBASE-21289 Remove the log "'hbase.regionserver.maxlogs' was deprecated." in AbstractFSWAL
This commit is contained in:
parent
c3401d4327
commit
9b38da685c
|
@ -408,11 +408,6 @@ public abstract class AbstractFSWAL<W extends WriterBase> implements WAL {
|
||||||
this.blocksize = WALUtil.getWALBlockSize(this.conf, this.fs, this.walDir);
|
this.blocksize = WALUtil.getWALBlockSize(this.conf, this.fs, this.walDir);
|
||||||
float multiplier = conf.getFloat("hbase.regionserver.logroll.multiplier", 0.5f);
|
float multiplier = conf.getFloat("hbase.regionserver.logroll.multiplier", 0.5f);
|
||||||
this.logrollsize = (long)(this.blocksize * multiplier);
|
this.logrollsize = (long)(this.blocksize * multiplier);
|
||||||
|
|
||||||
boolean maxLogsDefined = conf.get("hbase.regionserver.maxlogs") != null;
|
|
||||||
if (maxLogsDefined) {
|
|
||||||
LOG.warn("'hbase.regionserver.maxlogs' was deprecated.");
|
|
||||||
}
|
|
||||||
this.maxLogs = conf.getInt("hbase.regionserver.maxlogs",
|
this.maxLogs = conf.getInt("hbase.regionserver.maxlogs",
|
||||||
Math.max(32, calculateMaxLogFiles(conf, logrollsize)));
|
Math.max(32, calculateMaxLogFiles(conf, logrollsize)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue