HBASE-12591 Ignore the count of mob compaction metrics when there is issue.(Jiajia Li)

This commit is contained in:
anoopsjohn 2014-12-02 07:14:39 +05:30
parent 10e4ef7402
commit 33fc1918de
1 changed files with 2 additions and 2 deletions

View File

@ -171,14 +171,14 @@ public class DefaultMobCompactor extends DefaultCompactor {
KeyValue mobKv = KeyValueUtil.ensureKeyValue(cell);
mobKv.setSequenceId(kv.getSequenceId());
writer.append(mobKv);
mobCompactedFromMobCellsCount++;
mobCompactedFromMobCellsSize += cell.getValueLength();
} else {
// If the value of a file is empty, there might be issues when retrieving,
// directly write the cell to the store file, and leave it to be handled by the
// next compaction.
writer.append(kv);
}
mobCompactedFromMobCellsCount++;
mobCompactedFromMobCellsSize += cell.getValueLength();
}
} else {
LOG.warn("The value format of the KeyValue " + kv