cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-10090) Helper methods for safe cleanup
Date Wed, 19 Aug 2015 15:21:46 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-10090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aleksey Yeschenko updated CASSANDRA-10090:
------------------------------------------
    Fix Version/s:     (was: 3.x)

> Helper methods for safe cleanup
> -------------------------------
>
>                 Key: CASSANDRA-10090
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10090
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Benedict
>            Assignee: Benedict
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message