hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [5/5] hbase git commit: HBASE-5878 Use getVisibleLength public api from HdfsDataInputStream from Hadoop 2
Date Tue, 11 Aug 2015 00:14:25 GMT
HBASE-5878 Use getVisibleLength public api from HdfsDataInputStream from Hadoop 2

Amended to make only the change in SequenceFileLogReader that rethrows
exceptions caught while trying to get the file length as IOException.

Signed-off-by: Andrew Purtell <apurtell@apache.org>
Amending-Author: Andrew Purtell <apurtell@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/22b96831
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/22b96831
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/22b96831

Branch: refs/heads/branch-1.1
Commit: 22b96831584d44a63c71c5366f372622d13fd9b4
Parents: e00caff
Author: Ashish Singhi <ashish.singhi@huawei.com>
Authored: Mon Aug 10 17:02:00 2015 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Mon Aug 10 17:02:00 2015 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/22b96831/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
index 11312b1..5f6b377 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
@@ -134,6 +134,7 @@ public class SequenceFileLogReader extends ReaderBase {
             SequenceFileLogReader.LOG.warn(
               "Error while trying to get accurate file length.  " +
               "Truncation / data loss may occur if RegionServers die.", e);
+            throw new IOException(e);
           }
 
           return adjust + super.getPos();


Mime
View raw message