Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Duplicate
-
None
-
None
-
None
-
Low
Description
It's very easy to introduce a bug during cleanup/close methods of a class, and having just encountered another instance of this I think it's worthwhile introducing some utilities to make this easier to get right. Lambdas make it easy to neatly define the discrete cleanup actions that need to happen, and a simple static helper method can ensure these are all executed, with any resulting exceptions being aggregated and thrown together. This should also make such code much more legible, as an added bonus.
Attachments
Issue Links
- duplicates
-
CASSANDRA-6230 Write hints to flat files instead of the system.hints
- Resolved