hadoop-hdfs-trunk is broken due to HADOOP-6951 change to hadoop-common-trunk
----------------------------------------------------------------------------

                 Key: HDFS-1422
                 URL: https://issues.apache.org/jira/browse/HDFS-1422
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: name-node
            Reporter: Tanping Wang


The recent check in to hadoop-common breaks hadoop-hdfs trunk.  The change was 
made to 

src/java/org/apache/hadoop/ipc/Server.java 
src/java/org/apache/hadoop/ipc/Server.java

The change makes refresh() method to be non-static

-  public static synchronized void refresh(Configuration conf,
+  public synchronized void refresh(Configuration conf,
                                           PolicyProvider provider) {

This breaks the invocation of this method in DataNode.java, NameNode.java.  
Compilation errors : 

compile-hdfs-classes:
    [javac] Compiling 206 source files to 
/home/tanping/src/SVN/hadoop-hdfs-trunk/build/classes
    [javac] 
/home/tanping/src/SVN/hadoop-hdfs-trunk/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:461:
 non-static method 
refresh(org.apache.hadoop.conf.Configuration,org.apache.hadoop.security.authorize.PolicyProvider)
 cannot be referenced from a static context
    [javac]       ServiceAuthorizationManager.refresh(conf, new 
HDFSPolicyProvider());
    [javac]                                  ^
    [javac] 
/home/tanping/src/SVN/hadoop-hdfs-trunk/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:356:
 non-static method 
refresh(org.apache.hadoop.conf.Configuration,org.apache.hadoop.security.authorize.PolicyProvider)
 cannot be referenced from a static context
    [javac]       ServiceAuthorizationManager.refresh(conf, new 
HDFSPolicyProvider());
    [javac]                                  ^
    [javac] 
/home/tanping/src/SVN/hadoop-hdfs-trunk/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:1420:
 non-static method 
refresh(org.apache.hadoop.conf.Configuration,org.apache.hadoop.security.authorize.PolicyProvider)
 cannot be referenced from a static context
    [javac]     ServiceAuthorizationManager.refresh(
    [javac]                                ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 3 errors


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to