[ 
https://issues.apache.org/jira/browse/HBASE-5191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185428#comment-13185428
 ] 

Zhihong Yu commented on HBASE-5191:
-----------------------------------

After fixing the compilation error, the test failed with:
{code}
testLogRollOnDatanodeDeath(org.apache.hadoop.hbase.regionserver.wal.TestLogRolling)
  Time elapsed: 20.471 sec  <<< FAILURE!
java.lang.AssertionError: Need HDFS-826 for this test
  at org.junit.Assert.fail(Assert.java:93)
  at org.junit.Assert.assertTrue(Assert.java:43)
  at 
org.apache.hadoop.hbase.regionserver.wal.TestLogRolling.testLogRollOnDatanodeDeath(TestLogRolling.java:318)
{code}
This is the related line:
{code}
    assertTrue("Need HDFS-826 for this test", log.canGetCurReplicas());
{code}
This is how we retrieve getNumCurrentReplicas method in HLog:
{code}
  private Method getGetNumCurrentReplicas(final FSDataOutputStream os) {
    Method m = null;
    Exception exception = null;
    if (os != null) {
      try {
        m = os.getWrappedStream().getClass().
          getMethod("getNumCurrentReplicas", new Class<?> []{});
        m.setAccessible(true);
{code}
Here is the exception:
{code}
java.lang.NoSuchMethodException: 
org.apache.hadoop.hdfs.DFSOutputStream.getNumCurrentReplicas()
  at java.lang.Class.getMethod(Class.java:1605)
  at 
org.apache.hadoop.hbase.regionserver.wal.HLog.getGetNumCurrentReplicas(HLog.java:458)
  at org.apache.hadoop.hbase.regionserver.wal.HLog.&lt;init&gt;(HLog.java:441)
{code}
                
> Fix compilation error against hadoop 0.23.1
> -------------------------------------------
>
>                 Key: HBASE-5191
>                 URL: https://issues.apache.org/jira/browse/HBASE-5191
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.92.0
>            Reporter: Zhihong Yu
>             Fix For: 0.92.0, 0.94.0
>
>
> From Mahadev:
> I just checked out 0.92 branch and tried running:
> mvn -Dhadoop.profile=23 clean test
> -Dtest=org.apache.hadoop.hbase.mapreduce.TestTableMapReduce
> Looks like a compilation issue:
> ------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile
> (default-testCompile) on project hbase: Compilation failure
> [ERROR] 
> /Users/mahadev/workspace/hbase-workspace/hbase-git/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java:[341,33]
> cannot find symbol
> [ERROR] symbol  : variable dnRegistration
> [ERROR] location: class org.apache.hadoop.hdfs.server.datanode.DataNode
> [ERROR] -> [Help 1]
> [ERROR]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to