You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Renato Javier Marroquín Mogrovejo (JIRA)" <ji...@apache.org> on 2013/01/02 06:38:13 UTC
[jira] [Comment Edited] (GORA-153) gora-cassandra does not
correctly handle DELETED State for MAP
[ https://issues.apache.org/jira/browse/GORA-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13542006#comment-13542006 ]
Renato Javier Marroquín Mogrovejo edited comment on GORA-153 at 1/2/13 5:36 AM:
--------------------------------------------------------------------------------
Hi all,
Has this been solved? I mean is it integrated into trunk? or is GORA-182 going to solve this as well? I have some time now and I can try taking a swing at it.
was (Author: renato2099):
Hi all,
Has this been solved? or is GORA-182 going to solve this as well? I have some time now and I can try taking a swing at it.
> gora-cassandra does not correctly handle DELETED State for MAP
> --------------------------------------------------------------
>
> Key: GORA-153
> URL: https://issues.apache.org/jira/browse/GORA-153
> Project: Apache Gora
> Issue Type: Bug
> Components: storage-cassandra
> Affects Versions: 0.2
> Reporter: Kazuomi Kashii
> Fix For: 0.2.1
>
> Attachments: GORA-153.patch
>
>
> gora-cassandra does not correctly handle State.DELETED.
> It makes gora-cassandra test fail.
> Tests run: 28, Failures: 2, Errors: 9, Skipped: 0, Time elapsed: 18.081 sec <<< FAILURE!
> testUpdate(org.apache.gora.cassandra.store.TestCassandraStore) Time elapsed: 0.889 sec <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<3> but was:<7>
> at junit.framework.Assert.fail(Assert.java:50)
> at junit.framework.Assert.failNotEquals(Assert.java:287)
> at junit.framework.Assert.assertEquals(Assert.java:67)
> at junit.framework.Assert.assertEquals(Assert.java:199)
> at junit.framework.Assert.assertEquals(Assert.java:205)
> at org.apache.gora.store.DataStoreTestUtil.testUpdateWebPage(DataStoreTestUtil.java:310)
> at org.apache.gora.store.DataStoreTestBase.testUpdate(DataStoreTestBase.java:267)
> for (int j = 0; j < urls.length; j += 2) {
> webPage.putToOutlinks(new Utf8(anchor + j), new Utf8(urls[j]));
> } // webPage.getOutlinks().size() is 4.
> webPage.getOutlinks().clear(); // webPage.getOutlinks().size() should be 0.
> for (int j = 1; j < urls.length; j += 2) {
> webPage.putToOutlinks(new Utf8(anchor + j), new Utf8(urls[j]));
> } // webPage.getOutlinks().size() should be 3.
> dataStore.flush(); // It ignores DELETED State, so 7 are written.
> WebPage webPage = dataStore.get(urls[i]);
> Assert.assertEquals(count, webPage.getOutlinks().size()); // 3 != 7 .. ERROR
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira