You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Hseu (JIRA)" <ji...@apache.org> on 2009/12/19 19:22:18 UTC
[jira] Created: (CASSANDRA-647) get_range_slice() returns removed
columns
get_range_slice() returns removed columns
-----------------------------------------
Key: CASSANDRA-647
URL: https://issues.apache.org/jira/browse/CASSANDRA-647
Project: Cassandra
Issue Type: Bug
Affects Versions: 0.5
Environment: Linux
Reporter: Jonathan Hseu
Here's an example (using my soon-to-be-released python lib):
In [1]: import cdra
In [2]: test = cdra.ColumnFamily(cdra.connect(), 'VoteRank', 'Test')
In [3]: test.get_range_slice()
Out[3]: []
In [4]: test.insert('key', 'column', 'value')
In [5]: test.get_range_slice()
Out[5]: [('key', {'column': 'value'})]
In [6]: test.remove('key', 'column')
In [7]: test.get_range_slice()
Out[7]: [('key', {'column': 'K-\x19['})]
In [8]: test.get_slice('key')
Out[8]: {}
Also, get() returns a NotFoundException as expected.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-647) get_range_slice() returns removed
columns
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-647:
-------------------------------------
Fix Version/s: 0.5
Priority: Minor (was: Major)
> get_range_slice() returns removed columns
> -----------------------------------------
>
> Key: CASSANDRA-647
> URL: https://issues.apache.org/jira/browse/CASSANDRA-647
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.5
> Environment: Linux
> Reporter: Jonathan Hseu
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.5
>
> Attachments: 647.patch
>
>
> Here's an example (using my new python library at http://github.com/vomjom/pycassa ):
> >>> import pycassa
> >>> test = pycassa.ColumnFamily(pycassa.connect(), 'Test Keyspace', 'Test UTF8')
> >>> list(test.get_range())
> []
> >>> test.insert('key', {'column': 'value'})
> 1261512409
> >>> list(test.get_range())
> [('key', {'column': 'value'})]
> >>> test.remove('key', 'column')
> 1261512421
> >>> list(test.get_range())
> [('key', {'column': 'K0\xd2\x85'})]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-647) get_range_slice() returns removed
columns
Posted by "Jonathan Hseu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Hseu updated CASSANDRA-647:
------------------------------------
Description:
Here's an example (using my new python library at http://github.com/vomjom/pycassa ):
>>> import pycassa
>>> test = pycassa.ColumnFamily(pycassa.connect(), 'Test Keyspace', 'Test UTF8')
>>> list(test.get_range())
[]
>>> test.insert('key', {'column': 'value'})
1261512409
>>> list(test.get_range())
[('key', {'column': 'value'})]
>>> test.remove('key', 'column')
1261512421
>>> list(test.get_range())
[('key', {'column': 'K0\xd2\x85'})]
was:
Here's an example (using my new python library at http://github.com/vomjom/pycassa ):
>>> import pycasso
>>> test = pycasso.ColumnFamily(pycasso.connect(), 'Test Keyspace', 'Test UTF8')
>>> list(test.get_range())
[]
>>> test.insert('key', {'column': 'value'})
1261512409
>>> list(test.get_range())
[('key', {'column': 'value'})]
>>> test.remove('key', 'column')
1261512421
>>> list(test.get_range())
[('key', {'column': 'K0\xd2\x85'})]
> get_range_slice() returns removed columns
> -----------------------------------------
>
> Key: CASSANDRA-647
> URL: https://issues.apache.org/jira/browse/CASSANDRA-647
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.5
> Environment: Linux
> Reporter: Jonathan Hseu
>
> Here's an example (using my new python library at http://github.com/vomjom/pycassa ):
> >>> import pycassa
> >>> test = pycassa.ColumnFamily(pycassa.connect(), 'Test Keyspace', 'Test UTF8')
> >>> list(test.get_range())
> []
> >>> test.insert('key', {'column': 'value'})
> 1261512409
> >>> list(test.get_range())
> [('key', {'column': 'value'})]
> >>> test.remove('key', 'column')
> 1261512421
> >>> list(test.get_range())
> [('key', {'column': 'K0\xd2\x85'})]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-647) get_range_slice() returns removed
columns
Posted by "Jonathan Hseu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Hseu updated CASSANDRA-647:
------------------------------------
Description:
Here's an example (using my new python library at http://github.com/vomjom/pycassa ):
>>> import pycasso
>>> test = pycasso.ColumnFamily(pycasso.connect(), 'Test Keyspace', 'Test UTF8')
>>> list(test.get_range())
[]
>>> test.insert('key', {'column': 'value'})
1261512409
>>> list(test.get_range())
[('key', {'column': 'value'})]
>>> test.remove('key', 'column')
1261512421
>>> list(test.get_range())
[('key', {'column': 'K0\xd2\x85'})]
was:
Here's an example (using my new python library at http://github.com/vomjom/pycasso ):
>>> import pycasso
>>> test = pycasso.ColumnFamily(pycasso.connect(), 'Test Keyspace', 'Test UTF8')
>>> list(test.get_range())
[]
>>> test.insert('key', {'column': 'value'})
1261512409
>>> list(test.get_range())
[('key', {'column': 'value'})]
>>> test.remove('key', 'column')
1261512421
>>> list(test.get_range())
[('key', {'column': 'K0\xd2\x85'})]
> get_range_slice() returns removed columns
> -----------------------------------------
>
> Key: CASSANDRA-647
> URL: https://issues.apache.org/jira/browse/CASSANDRA-647
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.5
> Environment: Linux
> Reporter: Jonathan Hseu
>
> Here's an example (using my new python library at http://github.com/vomjom/pycassa ):
> >>> import pycasso
> >>> test = pycasso.ColumnFamily(pycasso.connect(), 'Test Keyspace', 'Test UTF8')
> >>> list(test.get_range())
> []
> >>> test.insert('key', {'column': 'value'})
> 1261512409
> >>> list(test.get_range())
> [('key', {'column': 'value'})]
> >>> test.remove('key', 'column')
> 1261512421
> >>> list(test.get_range())
> [('key', {'column': 'K0\xd2\x85'})]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-647) get_range_slice() returns removed
columns
Posted by "Chris Goffinet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794517#action_12794517 ]
Chris Goffinet commented on CASSANDRA-647:
------------------------------------------
+1
> get_range_slice() returns removed columns
> -----------------------------------------
>
> Key: CASSANDRA-647
> URL: https://issues.apache.org/jira/browse/CASSANDRA-647
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.5
> Environment: Linux
> Reporter: Jonathan Hseu
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.5
>
> Attachments: 647.patch
>
>
> Here's an example (using my new python library at http://github.com/vomjom/pycassa ):
> >>> import pycassa
> >>> test = pycassa.ColumnFamily(pycassa.connect(), 'Test Keyspace', 'Test UTF8')
> >>> list(test.get_range())
> []
> >>> test.insert('key', {'column': 'value'})
> 1261512409
> >>> list(test.get_range())
> [('key', {'column': 'value'})]
> >>> test.remove('key', 'column')
> 1261512421
> >>> list(test.get_range())
> [('key', {'column': 'K0\xd2\x85'})]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-647) get_range_slice() returns removed
columns
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-647:
-------------------------------------
Attachment: 647.patch
adds thrift test and fixes bug
> get_range_slice() returns removed columns
> -----------------------------------------
>
> Key: CASSANDRA-647
> URL: https://issues.apache.org/jira/browse/CASSANDRA-647
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.5
> Environment: Linux
> Reporter: Jonathan Hseu
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.5
>
> Attachments: 647.patch
>
>
> Here's an example (using my new python library at http://github.com/vomjom/pycassa ):
> >>> import pycassa
> >>> test = pycassa.ColumnFamily(pycassa.connect(), 'Test Keyspace', 'Test UTF8')
> >>> list(test.get_range())
> []
> >>> test.insert('key', {'column': 'value'})
> 1261512409
> >>> list(test.get_range())
> [('key', {'column': 'value'})]
> >>> test.remove('key', 'column')
> 1261512421
> >>> list(test.get_range())
> [('key', {'column': 'K0\xd2\x85'})]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-647) get_range_slice() returns removed
columns
Posted by "Jonathan Hseu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Hseu updated CASSANDRA-647:
------------------------------------
Description:
Here's an example (using my soon-to-be-released python lib):
In [1]: import cdra
In [2]: test = cdra.ColumnFamily(cdra.connect(), 'Keyspace', 'Test')
In [3]: test.get_range_slice()
Out[3]: []
In [4]: test.insert('key', 'column', 'value')
In [5]: test.get_range_slice()
Out[5]: [('key', {'column': 'value'})]
In [6]: test.remove('key', 'column')
In [7]: test.get_range_slice()
Out[7]: [('key', {'column': 'K-\x19['})]
In [8]: test.get_slice('key')
Out[8]: {}
Also, get() returns a NotFoundException as expected.
was:
Here's an example (using my soon-to-be-released python lib):
In [1]: import cdra
In [2]: test = cdra.ColumnFamily(cdra.connect(), 'VoteRank', 'Test')
In [3]: test.get_range_slice()
Out[3]: []
In [4]: test.insert('key', 'column', 'value')
In [5]: test.get_range_slice()
Out[5]: [('key', {'column': 'value'})]
In [6]: test.remove('key', 'column')
In [7]: test.get_range_slice()
Out[7]: [('key', {'column': 'K-\x19['})]
In [8]: test.get_slice('key')
Out[8]: {}
Also, get() returns a NotFoundException as expected.
> get_range_slice() returns removed columns
> -----------------------------------------
>
> Key: CASSANDRA-647
> URL: https://issues.apache.org/jira/browse/CASSANDRA-647
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.5
> Environment: Linux
> Reporter: Jonathan Hseu
>
> Here's an example (using my soon-to-be-released python lib):
> In [1]: import cdra
> In [2]: test = cdra.ColumnFamily(cdra.connect(), 'Keyspace', 'Test')
> In [3]: test.get_range_slice()
> Out[3]: []
> In [4]: test.insert('key', 'column', 'value')
> In [5]: test.get_range_slice()
> Out[5]: [('key', {'column': 'value'})]
> In [6]: test.remove('key', 'column')
> In [7]: test.get_range_slice()
> Out[7]: [('key', {'column': 'K-\x19['})]
> In [8]: test.get_slice('key')
> Out[8]: {}
> Also, get() returns a NotFoundException as expected.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-647) get_range_slice() returns removed
columns
Posted by "Jonathan Hseu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Hseu updated CASSANDRA-647:
------------------------------------
Component/s: Core
Description:
Here's an example (using my new python library at http://github.com/vomjom/pycasso ):
>>> import pycasso
>>> test = pycasso.ColumnFamily(pycasso.connect(), 'Test Keyspace', 'Test UTF8')
>>> list(test.get_range())
[]
>>> test.insert('key', {'column': 'value'})
1261512409
>>> list(test.get_range())
[('key', {'column': 'value'})]
>>> test.remove('key', 'column')
1261512421
>>> list(test.get_range())
[('key', {'column': 'K0\xd2\x85'})]
was:
Here's an example (using my soon-to-be-released python lib):
In [1]: import cdra
In [2]: test = cdra.ColumnFamily(cdra.connect(), 'Keyspace', 'Test')
In [3]: test.get_range_slice()
Out[3]: []
In [4]: test.insert('key', 'column', 'value')
In [5]: test.get_range_slice()
Out[5]: [('key', {'column': 'value'})]
In [6]: test.remove('key', 'column')
In [7]: test.get_range_slice()
Out[7]: [('key', {'column': 'K-\x19['})]
In [8]: test.get_slice('key')
Out[8]: {}
Also, get() returns a NotFoundException as expected.
> get_range_slice() returns removed columns
> -----------------------------------------
>
> Key: CASSANDRA-647
> URL: https://issues.apache.org/jira/browse/CASSANDRA-647
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.5
> Environment: Linux
> Reporter: Jonathan Hseu
>
> Here's an example (using my new python library at http://github.com/vomjom/pycasso ):
> >>> import pycasso
> >>> test = pycasso.ColumnFamily(pycasso.connect(), 'Test Keyspace', 'Test UTF8')
> >>> list(test.get_range())
> []
> >>> test.insert('key', {'column': 'value'})
> 1261512409
> >>> list(test.get_range())
> [('key', {'column': 'value'})]
> >>> test.remove('key', 'column')
> 1261512421
> >>> list(test.get_range())
> [('key', {'column': 'K0\xd2\x85'})]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.