gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GORA-154) delete() and deleteByQuery() methods are not implemented at CassandraStore, and always returns false or 0
Date Thu, 13 Mar 2014 05:55:45 GMT

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

Hudson commented on GORA-154:
-----------------------------

SUCCESS: Integrated in gora-trunk #1030 (See [https://builds.apache.org/job/gora-trunk/1030/])
GORA-154 (rmarroquin: http://svn.apache.org/viewvc/gora/trunk/?view=rev&rev=1576726)
* /gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java
* /gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraMapping.java
* /gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraStore.java
* /gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/HectorUtils.java
* /gora/trunk/gora-cassandra/src/test/conf/gora-cassandra-mapping.xml


> 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, GORA-154.v3.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 was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message