ACCUMULO-4318 Made writers and scanners auto closeable#104
ACCUMULO-4318 Made writers and scanners auto closeable#104keith-turner wants to merge 2 commits intoapache:1.8from
Conversation
|
One thought--- a client might open a BatchScanner in a try-with-resources block but save a reference to |
I can add some javadoc on the close methods. |
|
Noticed that you also added some closing of Scanners that were left to auto-close on GC |
No exactly sure what you mean. Can you point it out with a comment? |
Maybe close by GC is wrong (I forget if we actually have a finalizer on it now). But, anyways, you added some close calls on Scanners :) https://github.com/apache/accumulo/pull/104/files#diff-34221dcf488e3b53687222557d82b2f1R300 |
ok. Introducing Autocloseable introduced lots of warnings in the code. I was just trying to suppress the warnings. When I did this I was thinking Scanners don't have to be closed, so don't need to use try-with-resources. However this could change in the future and the warnings will not be there. I'll change those to use try-with-resources. |
|
Merged this to 1.8. Thanks @joshelser and @dhutchis for taking a look. |
No description provided.