HBASE-7001 Fix the RCN Correctness Warning in MemStoreFlusher class (Liang Xie)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1401037 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
12315b8597
commit
2cdb599c36
|
@ -350,7 +350,7 @@ class MemStoreFlusher extends HasThread implements FlushRequester {
|
|||
*/
|
||||
private boolean flushRegion(final FlushRegionEntry fqe) {
|
||||
HRegion region = fqe.region;
|
||||
if (!fqe.region.getRegionInfo().isMetaRegion() &&
|
||||
if (!region.getRegionInfo().isMetaRegion() &&
|
||||
isTooManyStoreFiles(region)) {
|
||||
if (fqe.isMaximumWait(this.blockingWaitTime)) {
|
||||
LOG.info("Waited " + (System.currentTimeMillis() - fqe.createTime) +
|
||||
|
@ -367,8 +367,8 @@ class MemStoreFlusher extends HasThread implements FlushRequester {
|
|||
try {
|
||||
this.server.compactSplitThread.requestCompaction(region, getName());
|
||||
} catch (IOException e) {
|
||||
LOG.error("Cache flush failed" +
|
||||
(region != null ? (" for region " + Bytes.toStringBinary(region.getRegionName())) : ""),
|
||||
LOG.error(
|
||||
"Cache flush failed for region " + Bytes.toStringBinary(region.getRegionName()),
|
||||
RemoteExceptionHandler.checkIOException(e));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue