HBASE-21056 Findbugs false positive: BucketCache.persistToFile may fail to clean up java.io.OutputStream

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Sean Busbey 2018-08-15 09:24:55 -05:00 committed by Peter Somogyi
parent faed3e457d
commit 1110e23a61
1 changed files with 2 additions and 0 deletions

View File

@ -1044,6 +1044,8 @@ public class BucketCache implements BlockCache, HeapSize {
/**
* @see #retrieveFromFile(int[])
*/
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value="OBL_UNSATISFIED_OBLIGATION",
justification = "false positive, try-with-resources ensures close is called.")
private void persistToFile() throws IOException {
assert !cacheEnabled;
if (!ioEngine.isPersistent()) {