[
https://issues.apache.org/jira/browse/GORA-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414694#comment-13414694
]
Kazuomi Kashii commented on GORA-53:
------------------------------------
Tests run: 28, Failures: 9, Errors: 5, Skipped: 0, Time elapsed: 21.147 sec <<<
FAILURE!
There are three types of failures or errors.
1) AssertionFailedError
testSchemaExists(org.apache.gora.cassandra.store.TestCassandraStore) Time
elapsed: 0.883 sec <<< FAILURE!
junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:48)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at
org.apache.gora.store.DataStoreTestUtil.testSchemaExists(DataStoreTestUtil.java:131)
at
org.apache.gora.store.DataStoreTestBase.testSchemaExists(DataStoreTestBase.java:164)
It is because CassandraStore's schemaExists() method returns always false.
public boolean schemaExists() throws IOException {
LOG.info("schema exists");
return false;
}
2) StackOverflowError
testDeleteByQuery(org.apache.gora.cassandra.store.TestCassandraStore) Time
elapsed: 0.62 sec <<< ERROR!
java.lang.StackOverflowError
at
org.apache.gora.persistency.ListGenericArray.compareTo(ListGenericArray.java:32)
at org.apache.avro.generic.GenericData.compare(GenericData.java:487)
at
org.apache.gora.persistency.ListGenericArray.compareTo(ListGenericArray.java:102)
at
org.apache.gora.persistency.ListGenericArray.compareTo(ListGenericArray.java:32)
at org.apache.avro.generic.GenericData.compare(GenericData.java:487)
at
org.apache.gora.persistency.ListGenericArray.compareTo(ListGenericArray.java:102)
at
org.apache.gora.persistency.ListGenericArray.compareTo(ListGenericArray.java:32)
at org.apache.avro.generic.GenericData.compare(GenericData.java:487)
I have no clue. Maybe a bug of gora-core ?
3) ComparisonFailure
testUpdate(org.apache.gora.cassandra.store.TestCassandraStore) Time elapsed:
0.68 sec <<< FAILURE!
junit.framework.ComparisonFailure: expected:<[content0]> but
was:<[?^A^@^B^@^@^@^Pget_range_slices^@^@^@5^O^@^@^L^@^@^@^A^K^@^A^@^@^@^Nhttp://a.com/a^O^@^B^L^@^@^@^B^L^@^A^K^@^A^@^@^@^Cc:u^K^@^B^@^@^@^Nhttp://a.com/a
^@^C^@^D????5?^@^@^L^@^A^K^@^A^@^@^@^Gp:cnt:c^K^@^B^@^@^@^Hcontent0
^@^C^@^D????+?^@^@^@^@]>
at junit.framework.Assert.assertEquals(Assert.java:85)
at junit.framework.Assert.assertEquals(Assert.java:91)
at
org.apache.gora.store.DataStoreTestUtil.testUpdateWebPage(DataStoreTestUtil.java:296)
at
org.apache.gora.store.DataStoreTestBase.testUpdate(DataStoreTestBase.java:267)
It seems a bug of gora-cassandra.
> Add Gora-Cassandra tests
> ------------------------
>
> Key: GORA-53
> URL: https://issues.apache.org/jira/browse/GORA-53
> Project: Apache Gora
> Issue Type: Improvement
> Components: storage-cassandra
> Affects Versions: 0.1.1-incubating
> Reporter: Lewis John McGibbney
> Assignee: Lewis John McGibbney
> Priority: Critical
> Fix For: 0.3
>
> Attachments: GORA-53-v2.patch, GORA-53.patch, GORA-54-v8.patch,
> GORA-test.patch, test.txt
>
>
> As per this thread [1], it is absolutely essential that we get some tests for
> the Cassandra module. Therefore this task should act as a summary task to
> manage all test which are hereby proposed.
> Realistically, this is going to take a good while, so I have marked it for
> 0.2 and 0.3-incubating releases.
> [1] http://www.mail-archive.com/[email protected]/msg00241.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira