HBASE-23590 : Update maxCompactedStoreFileRef (ADDENDUM)
This commit is contained in:
parent
e0c419d76d
commit
19b35d2b19
|
@ -2878,7 +2878,9 @@ public class HStore implements Store {
|
||||||
*/
|
*/
|
||||||
public int getMaxCompactedStoreFileRefCount() {
|
public int getMaxCompactedStoreFileRefCount() {
|
||||||
int maxCompactedStoreFileRefCount = 0;
|
int maxCompactedStoreFileRefCount = 0;
|
||||||
for (StoreFile store : storeEngine.getStoreFileManager().getCompactedfiles()) {
|
Collection<StoreFile> compactedFiles = storeEngine.getStoreFileManager().getCompactedfiles();
|
||||||
|
if (compactedFiles != null) {
|
||||||
|
for (StoreFile store : compactedFiles) {
|
||||||
if (store.isHFile()) {
|
if (store.isHFile()) {
|
||||||
StoreFile.Reader storeReader = store.getReader();
|
StoreFile.Reader storeReader = store.getReader();
|
||||||
if (storeReader != null) {
|
if (storeReader != null) {
|
||||||
|
@ -2887,6 +2889,7 @@ public class HStore implements Store {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return maxCompactedStoreFileRefCount;
|
return maxCompactedStoreFileRefCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue