Skip to content

Commit

Permalink
Merge branch 'cassandra-2.2' into cassandra-3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
belliottsmith committed Aug 7, 2019
2 parents 9af57a5 + f21106f commit 50608af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* Add missing commands to nodetool-completion (CASSANDRA-14916)
* Anti-compaction temporarily corrupts sstable state for readers (CASSANDRA-15004)
Merged from 2.2:
* Catch non-IOException in FileUtils.close to make sure that all resources are closed (CASSANDRA-15225)
* Handle exceptions during authentication/authorization (CASSANDRA-15041)
* Support cross version messaging in in-jvm upgrade dtests (CASSANDRA-15078)
* Fix index summary redistribution cancellation (CASSANDRA-15045)
Expand Down
10 changes: 5 additions & 5 deletions src/java/org/apache/cassandra/io/util/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,22 +257,22 @@ public static void close(Closeable... cs) throws IOException

public static void close(Iterable<? extends Closeable> cs) throws IOException
{
IOException e = null;
Throwable e = null;
for (Closeable c : cs)
{
try
{
if (c != null)
c.close();
}
catch (IOException ex)
catch (Throwable ex)
{
e = ex;
if (e == null) e = ex;
else e.addSuppressed(ex);
logger.warn("Failed closing stream {}", c, ex);
}
}
if (e != null)
throw e;
maybeFail(e, IOException.class);
}

public static void closeQuietly(Iterable<? extends AutoCloseable> cs)
Expand Down

0 comments on commit 50608af

Please sign in to comment.