DomGarguilo opened a new pull request, #5283:
URL: https://github.com/apache/accumulo/pull/5283

   `AmpleImple.getExternalCompactionFinalStates()` creates a `Scanner` and 
returns a `Stream` off of that `Scanner`. This PR adds an `onClose()` to the 
stream that will close the `Scanner`.
   
   I changed things so that the `Stream` returned by this method is explicitly 
closed in a try-with-resources block.
   
   There were other spots that use this method but they were in the testing 
code so I left those alone. I'll probably clean those up too in 3.1 and main 
once this is merged up.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to