[ 
https://issues.apache.org/jira/browse/GORA-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Renato Javier Marroquín Mogrovejo updated GORA-154:
---------------------------------------------------

    Attachment: GORA-154.v2.patch

Hi all,
This is a second version of this patch. The first one was done by Lewis and I 
have been able to improve it (:
There are some problems while doing deletes in Cassandra, and that is the use 
of Tombstones which mean that the actual key will remain inside the data store 
until a majorCompaction is done and certain period of time passes 
(gc_grace_seconds and TTL time metric). So this means that the key will 
actually stay there until someone triggers this actions from outside GoraLand.
If someone could review this, it'd be awesome! 
                
> delete() and deleteByQuery() methods are not implemented at CassandraStore, 
> and always returns false or 0
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: GORA-154
>                 URL: https://issues.apache.org/jira/browse/GORA-154
>             Project: Apache Gora
>          Issue Type: Bug
>          Components: gora-cassandra
>    Affects Versions: 0.2
>            Reporter: Kazuomi Kashii
>            Assignee: Renato Javier Marroquín Mogrovejo
>             Fix For: 0.4
>
>         Attachments: GORA-154.v2.patch
>
>
> CassandraStore.java has the followings:
>   @Override
>   public boolean delete(K key) throws IOException {
>     LOG.debug("delete " + key);
>     return false;
>   }
>   @Override
>   public long deleteByQuery(Query<K, T> query) throws IOException {
>     LOG.debug("delete by query " + query);
>     return 0;
>   }
> It causes junit.framework.AssertionFailedError at gora-cassandra test.
> testDelete(org.apache.gora.cassandra.store.TestCassandraStore)  Time elapsed: 
> 0.656 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.testDelete(DataStoreTestUtil.java:580)
>         at 
> org.apache.gora.store.DataStoreTestBase.testDelete(DataStoreTestBase.java:349)

--
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

Reply via email to