[
https://issues.apache.org/jira/browse/ACCUMULO-4659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16091205#comment-16091205
]
Sneha Kanekar commented on ACCUMULO-4659:
-----------------------------------------
The comparison between masterEntry key and peerEntry key in the testcase
UnorderedWorkAssignerReplicationIT#dataWasReplicatedToThePeer returns 3 as
result whereas expected result is 0.
{code:borderStyle=solid}
Assert.assertEquals(masterEntry.getKey() + " was not equal to " +
peerEntry.getKey(), 0,
masterEntry.getKey().compareTo(peerEntry.getKey(),
PartialKey.ROW_COLFAM_COLQUAL_COLVIS));
{code}
In the compareTo function in file
../core/src/main/java/org/apache/accumulo/core/data/Key.java , check for
matching row returns 3 as result and hence the function exits after entering if
condition
{code:borderStyle=solid}
int result = WritableComparator.compareBytes(row, 0, row.length, other.row, 0,
other.row.length);
if (result != 0 || part.equals(PartialKey.ROW))
return result;
{code}
> Tests in UnorderedWorkAssignerReplicationIT fail intermittently
> ---------------------------------------------------------------
>
> Key: ACCUMULO-4659
> URL: https://issues.apache.org/jira/browse/ACCUMULO-4659
> Project: Accumulo
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0
> Environment: Ubuntu:14.04
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
> Reporter: Sneha Kanekar
> Labels: ppc64le, x86
> Fix For: 2.0.0
>
>
> Tests in
> org.apache.accumulo.test.replication.UnorderedWorkAssignerReplicationIT fail
> intermittently with java.lang.AssertionError. The error message is as follows:
> {code:borderStyle=solid}
> java.lang.AssertionError: 0 0: [] 1497669734784 false was not equal to 0 0:
> [] 1497669734784 false expected:<0> but was:<3>
> at
> org.apache.accumulo.test.replication.UnorderedWorkAssignerReplicationIT.dataWasReplicatedToThePeerWithoutDrain(UnorderedWorkAssignerReplicationIT.java:560)
> {code}
> Any update on this issue?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)