HBASE-27021 StoreFileInfo should set its initialPath in a consistent way
(Amending spotless errors after revert by Duo)
This commit is contained in:
parent
e3359efe7a
commit
930bc5368c
|
@ -139,7 +139,7 @@ public class StoreFileInfo implements Configurable {
|
|||
|
||||
this.fs = fs;
|
||||
this.conf = conf;
|
||||
this.initialPath = initialPath;
|
||||
this.initialPath = fs.makeQualified(initialPath);
|
||||
this.primaryReplica = primaryReplica;
|
||||
this.noReadahead =
|
||||
this.conf.getBoolean(STORE_FILE_READER_NO_READAHEAD, DEFAULT_STORE_FILE_READER_NO_READAHEAD);
|
||||
|
|
|
@ -941,13 +941,16 @@ public class TestHStore {
|
|||
private void closeCompactedFile(int index) throws IOException {
|
||||
Collection<HStoreFile> files =
|
||||
this.store.getStoreEngine().getStoreFileManager().getCompactedfiles();
|
||||
if (files.size() > 0) {
|
||||
HStoreFile sf = null;
|
||||
Iterator<HStoreFile> it = files.iterator();
|
||||
for (int i = 0; i <= index; i++) {
|
||||
sf = it.next();
|
||||
}
|
||||
sf.closeStoreFile(true);
|
||||
store.getStoreEngine().getStoreFileManager().removeCompactedFiles(Lists.newArrayList(sf));
|
||||
store.getStoreEngine().getStoreFileManager()
|
||||
.removeCompactedFiles(Collections.singletonList(sf));
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue