accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] ivakegg closed pull request #616: ACCUMULO-4854 Fix DfsLogger exceptions
Date Tue, 04 Sep 2018 17:52:33 GMT
ivakegg closed pull request #616: ACCUMULO-4854 Fix DfsLogger exceptions
URL: https://github.com/apache/accumulo/pull/616
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/server/tserver/src/main/java/org/apache/accumulo/tserver/log/DfsLogger.java b/server/tserver/src/main/java/org/apache/accumulo/tserver/log/DfsLogger.java
index b0f3229cc3..9f50621f06 100644
--- a/server/tserver/src/main/java/org/apache/accumulo/tserver/log/DfsLogger.java
+++ b/server/tserver/src/main/java/org/apache/accumulo/tserver/log/DfsLogger.java
@@ -553,13 +553,9 @@ public synchronized void defineTablet(long seq, int tid, KeyExtent tablet)
throw
   }
 
   private synchronized void write(LogFileKey key, LogFileValue value) throws IOException
{
-    try {
-      key.write(encryptingLogFile);
-      value.write(encryptingLogFile);
-      encryptingLogFile.flush();
-    } catch (ClosedChannelException e) {
-      throw new LogClosedException();
-    }
+    key.write(encryptingLogFile);
+    value.write(encryptingLogFile);
+    encryptingLogFile.flush();
   }
 
   public LoggerOperation log(long seq, int tid, Mutation mutation, Durability durability)


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message