hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From li...@apache.org
Subject svn commit: r1535477 - /hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
Date Thu, 24 Oct 2013 18:18:25 GMT
Author: liyin
Date: Thu Oct 24 18:18:24 2013
New Revision: 1535477

URL: http://svn.apache.org/r1535477
Log:
[HBASE-9828] Fix the Reflection call to get a DFSInputStream.

Author: manukranthk

Summary: The Reflection call to get a DFSInputStream when applied in the local file system
case, causes problems since the corresponding method is private here.

Test Plan: Tested on Local HBase Single node setup.

Reviewers: pritam

Reviewed By: pritam

CC: hbase-eng@, san

Differential Revision: https://phabricator.fb.com/D1023902

Task ID: 3043496

Modified:
    hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java

Modified: hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java?rev=1535477&r1=1535476&r2=1535477&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
(original)
+++ hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
Thu Oct 24 18:18:24 2013
@@ -106,8 +106,8 @@ public class SequenceFileLogReader imple
             Field fIn = FilterInputStream.class.getDeclaredField("in");
             fIn.setAccessible(true);
             Object realIn = fIn.get(this.in);
-            Method getFileLength = realIn.getClass().
-              getMethod("getFileLength", new Class<?> []{});
+            Method getFileLength = realIn.getClass()
+                .getDeclaredMethod("getFileLength", new Class<?> []{});
             getFileLength.setAccessible(true);
             long realLength = ((Long)getFileLength.
               invoke(realIn, new Object []{})).longValue();



Mime
View raw message