You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rya.apache.org by "David W. Lotts (JIRA)" <ji...@apache.org> on 2015/12/09 23:49:11 UTC

[jira] [Commented] (RYA-6) DOA/Query Dates Test fail on Hortonworks Sandox

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

David W. Lotts commented on RYA-6:
----------------------------------

Initial speculation:
This test adds 9 statements varying by only their datetime subjects. It then queries two very similar ones that exactly match two statements:

subject 1 = "2000-01-01"
subject 2 = "2000-01-01TZ"

One does not specify the timezone, the other does.  If the implementation for adding the statement assumes or determines via system timezone that unspecified == Zulu time (Z) then the second date will overwrite the first, as their canonical/lexical forms are the same.

The same goes for the query engine, if it removes duplicates based on lexical form.

The interesting assert is at line 441 of file:
/dao/accumulo.rya/src/test/java/mvm/rya/accumulo/AccumuloRyaDAOTest.java

> DOA/Query Dates Test fail on Hortonworks Sandox
> -----------------------------------------------
>
>                 Key: RYA-6
>                 URL: https://issues.apache.org/jira/browse/RYA-6
>             Project: Rya
>          Issue Type: Bug
>         Environment: OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
> Maven version: 3.3.3
> Java version: OpenJDK Runtime Environment 1.7.0_79
> Accumulo version: 1.6.1.2.2.4.2-2
> Hadoop version:2.6.0.2.2.4.2-2
>            Reporter: Aaron Mihalik
>
> here is the stack trace:
> {noformat}
> -------------------------------------------------------------------------------
> Test set: mvm.rya.accumulo.AccumuloRyaDAOTest
> -------------------------------------------------------------------------------
> Tests run: 19, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.243 sec <<< FAILURE!
> testQueryDates(mvm.rya.accumulo.AccumuloRyaDAOTest)  Time elapsed: 0.16 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<2> but was:<1>
> 	at org.junit.Assert.fail(Assert.java:91)
> 	at org.junit.Assert.failNotEquals(Assert.java:645)
> 	at org.junit.Assert.assertEquals(Assert.java:126)
> 	at org.junit.Assert.assertEquals(Assert.java:470)
> 	at org.junit.Assert.assertEquals(Assert.java:454)
> 	at mvm.rya.accumulo.AccumuloRyaDAOTest.testQueryDates(AccumuloRyaDAOTest.java:441)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)