So if Hadoop Core puts up a new snapshot, it looks like Ivy pulls it down but 
does not
delete any older version which may be locally cached, and so the snapshots get 
mixed
up on the classpath.

apurt...@latitude:~/src/Hadoop/hbase-trunk$ svn up
At revision 899155.
apurt...@latitude:~/src/Hadoop/hbase-trunk$ svn status
apurt...@latitude:~/src/Hadoop/hbase-trunk$ rm -rf build
apurt...@latitude:~/src/Hadoop/hbase-trunk$ ant && ant test
[...]
BUILD SUCCESSFUL
[...]
test-core:
    [mkdir] Created dir: /home/apurtell/src/Hadoop/hbase-trunk/build/test/logs
    [junit] Running org.apache.hadoop.hbase.TestCompare
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.086 sec
    [junit] Running org.apache.hadoop.hbase.TestEmptyMetaInfo
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.251 sec
    [junit] Test org.apache.hadoop.hbase.TestEmptyMetaInfo FAILED

Tail of build/test/TEST-org.apache.hadoop.hbase.TestEmptyMetaInfo.txt:

Testcase: testEmptyMetaInfo took 2.237 sec
        Caused an ERROR
org.apache.hadoop.ipc.RPC.waitForProxy(Ljava/lang/Class;JLjava/net/InetSocketAddress;Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/ipc/VersionedProtocol;
java.lang.NoSuchMethodError: 
org.apache.hadoop.ipc.RPC.waitForProxy(Ljava/lang/Class;JLjava/net/InetSocketAddress;Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/ipc/VersionedProtocol;
        at 
org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:283)
        at 
org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:233)
        at 
org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1416)
        at 
org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1371)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes(MiniDFSCluster.java:428)
        at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:292)
        at 
org.apache.hadoop.hbase.HBaseClusterTestCase.setUp(HBaseClusterTestCase.java:124)

Blowing away the Ivy cache resolved this.

apurt...@latitude:~/src/Hadoop/hbase-trunk$ rm -rf ~/.ivy2/cache
apurt...@latitude:~/src/Hadoop/hbase-trunk$ ant && ant test
[...]

And all is well. 

Hitting this for the first time at 3am is annoying. 

Any chance there is some update to the Ivy config which can handle this 
automagically? 

   - Andy


      

Reply via email to