You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Kazuomi Kashii (JIRA)" <ji...@apache.org> on 2012/07/20 08:05:35 UTC
[jira] [Created] (GORA-153) gora-cassandra does not correctly
handle DELETED State for MAP
Kazuomi Kashii created GORA-153:
-----------------------------------
Summary: 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.3
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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (GORA-153) gora-cassandra does not correctly
handle DELETED State for MAP
Posted by "Kazuomi Kashii (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kazuomi Kashii resolved GORA-153.
---------------------------------
Resolution: Fixed
$ svn commit --username kazk --message "Fixes GORA-153 to correctly handle DELETED State for MAP"
Sending CHANGES.txt
Sending gora-cassandra/src/main/java/org/apache/gora/cassandra/serializers/StatefulHashMapSerializer.java
Sending gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java
Sending gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraStore.java
Sending gora-cassandra/src/main/java/org/apache/gora/cassandra/store/HectorUtils.java
Sending pom.xml
Transmitting file data ......
Committed revision 1363667.
$
> 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.3
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GORA-153) gora-cassandra does not correctly
handle DELETED State for MAP
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419001#comment-13419001 ]
Hudson commented on GORA-153:
-----------------------------
Integrated in gora-trunk #360 (See [https://builds.apache.org/job/gora-trunk/360/])
Fixes GORA-153 to correctly handle DELETED State for MAP (Revision 1363667)
Result = UNSTABLE
kazk :
Files :
* /gora/trunk/CHANGES.txt
* /gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/serializers/StatefulHashMapSerializer.java
* /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/CassandraStore.java
* /gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/HectorUtils.java
* /gora/trunk/pom.xml
> 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.3
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GORA-153) gora-cassandra does not correctly
handle DELETED State for MAP
Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498415#comment-13498415 ]
Lewis John McGibbney commented on GORA-153:
-------------------------------------------
I never ever saw or acknowledged the last comment from Hazem. Kaz, opened GORA-182 to address the concerns and subsequent findings.
> 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
[jira] [Commented] (GORA-153) gora-cassandra does not correctly
handle DELETED State for MAP
Posted by "Kazuomi Kashii (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498647#comment-13498647 ]
Kazuomi Kashii commented on GORA-153:
-------------------------------------
Hazem, thanks for your pointing out the issue.
Unfortunately, I had not had time since mid August, and I had not noticed your important comment until Lewis mentioned today as above.
I think GORA-182 should fix the issue.
> 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
[jira] [Updated] (GORA-153) gora-cassandra does not correctly
handle DELETED State for MAP
Posted by "Kazuomi Kashii (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kazuomi Kashii updated GORA-153:
--------------------------------
Attachment: GORA-153.patch
Correctly handle DELETE State for MAP.
> 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.3
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (GORA-153) gora-cassandra does not correctly handle
DELETED State for MAP
Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lewis John McGibbney closed GORA-153.
-------------------------------------
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (GORA-153) gora-cassandra does not correctly
handle DELETED State for MAP
Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lewis John McGibbney updated GORA-153:
--------------------------------------
Fix Version/s: (was: 0.3)
0.2.1
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira