!72 fix: close index file after read
Merge pull request !72 from tushengxia/fix-hindex-inputstream
This commit is contained in:
commit
8fa746ef0d
|
|
@ -215,9 +215,9 @@ public class IndexClient
|
|||
| NoSuchMethodException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
try (InputStream is = indexStore.read(child)) {
|
||||
index.load(is);
|
||||
}
|
||||
InputStream is = indexStore.read(child);
|
||||
index.load(is);
|
||||
is.close();
|
||||
LOG.debug("Loaded {} index from {}.", index.getId(), child);
|
||||
result.put(child, index);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue