hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [hbase] huaxiangsun opened a new pull request #3087: HBASE-25691 Test failure: TestVerifyBucketCacheFile.testRetrieveFromFile
Date Wed, 24 Mar 2021 16:19:03 GMT

huaxiangsun opened a new pull request #3087:
URL: https://github.com/apache/hbase/pull/3087


   The issue is that FileInputStream is created with try-with-resources, so its close() is
called right after the try sentence.
   FileInputStream is a finalize class, when this object is garbage collected, its close()
is called again.
   To avoid this double-free resources, add guard against it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message