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:
parent
e8eb366514
commit
d159b1f8bb
|
@ -1081,6 +1081,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()) {
|
||||
|
|
Loading…
Reference in New Issue