You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "BELUGA BEHR (JIRA)" <ji...@apache.org> on 2017/12/31 03:13:00 UTC
[jira] [Created] (HBASE-19675) Miscellaneous HStore.java
Improvements
BELUGA BEHR created HBASE-19675:
-----------------------------------
Summary: Miscellaneous HStore.java Improvements
Key: HBASE-19675
URL: https://issues.apache.org/jira/browse/HBASE-19675
Project: HBase
Issue Type: Improvement
Components: hbase
Affects Versions: 3.0.0
Reporter: BELUGA BEHR
Priority: Minor
* Remove logging code guards in favor of slf4j parameters
* Use {{CollectionsUtils.isEmpty()}} consistently
* Small check-style fixes
* Remove flow control logic from {{trace}} statement {code} if (LOG.isTraceEnabled()) {
LOG.trace("No compacted files to archive");
return;
}{code}
* Replace two calls to the same getter to ensure that the value doesn't change between calls {code} if (getCompactedFiles() != null) {
for (HStoreFile file : getCompactedFiles()) {
name2File.put(file.getFileInfo().getActiveFileName(), file);
}
}{code}
* Make 'inputFiles' a Set for fast calls to {{contains}} method instead {code} //some of the input files might already be deleted
List<HStoreFile> inputStoreFiles = new ArrayList<>(compactionInputs.size());
for (HStoreFile sf : this.getStorefiles()) {
if (inputFiles.contains(sf.getPath().getName())) {
inputStoreFiles.add(sf);
}
}{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)