[
https://issues.apache.org/jira/browse/HBASE-13524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Elliott Clark updated HBASE-13524:
----------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
1.1.0
2.0.0
Status: Resolved (was: Patch Available)
> TestReplicationAdmin fails on JDK 1.8
> -------------------------------------
>
> Key: HBASE-13524
> URL: https://issues.apache.org/jira/browse/HBASE-13524
> Project: HBase
> Issue Type: Bug
> Affects Versions: 2.0.0, 1.1.0
> Reporter: Elliott Clark
> Assignee: Elliott Clark
> Fix For: 2.0.0, 1.1.0, 1.2.0
>
> Attachments: HBASE-13524-v1.patch, HBASE-13524.patch
>
>
> {code}
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m;
> support was removed in 8.0
> Running org.apache.hadoop.hbase.client.replication.TestReplicationAdmin
> Tests run: 5, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 2.419 sec <<<
> FAILURE! - in org.apache.hadoop.hbase.client.replication.TestReplicationAdmin
> testAppendPeerTableCFs(org.apache.hadoop.hbase.client.replication.TestReplicationAdmin)
> Time elapsed: 0.037 sec <<< FAILURE!
> org.junit.ComparisonFailure: expected:<t[2;t1]> but was:<t[1;t2]>
> at org.junit.Assert.assertEquals(Assert.java:115)
> at org.junit.Assert.assertEquals(Assert.java:144)
> at
> org.apache.hadoop.hbase.client.replication.TestReplicationAdmin.testAppendPeerTableCFs(TestReplicationAdmin.java:170)
> testEnableDisable(org.apache.hadoop.hbase.client.replication.TestReplicationAdmin)
> Time elapsed: 0.031 sec <<< ERROR!
> java.lang.IllegalArgumentException: Cannot add a peer with id=1 because that
> id already exists.
> at
> org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl.addPeer(ReplicationPeersZKImpl.java:112)
> at
> org.apache.hadoop.hbase.client.replication.ReplicationAdmin.addPeer(ReplicationAdmin.java:202)
> at
> org.apache.hadoop.hbase.client.replication.ReplicationAdmin.addPeer(ReplicationAdmin.java:181)
> at
> org.apache.hadoop.hbase.client.replication.TestReplicationAdmin.testEnableDisable(TestReplicationAdmin.java:115)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)