You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benjamin Coverston (JIRA)" <ji...@apache.org> on 2011/02/15 20:20:57 UTC
[jira] Created: (CASSANDRA-2168) SSTable2Json tool returns a
different key when a querying for a specific key in an SSTable that does
not exist
SSTable2Json tool returns a different key when a querying for a specific key in an SSTable that does not exist
--------------------------------------------------------------------------------------------------------------
Key: CASSANDRA-2168
URL: https://issues.apache.org/jira/browse/CASSANDRA-2168
Project: Cassandra
Issue Type: Bug
Affects Versions: 0.7.1, 0.6.11
Reporter: Benjamin Coverston
Priority: Minor
bin/sstable2json storage/core/data/Foo/BAR-1-Data.db -k NonExistantKey
returns
{ "ExistantKey" }
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2168) SSTable2Json tool returns a
different key when a querying for a specific key in an SSTable that does
not exist
Posted by "Benjamin Coverston (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Coverston updated CASSANDRA-2168:
------------------------------------------
Attachment: 2168.txt
Patch 2168 attached for review.
> SSTable2Json tool returns a different key when a querying for a specific key in an SSTable that does not exist
> --------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2168
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2168
> Project: Cassandra
> Issue Type: Bug
> Reporter: Benjamin Coverston
> Assignee: Benjamin Coverston
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: 2168.txt
>
>
> bin/sstable2json storage/core/data/Foo/BAR-1-Data.db -k NonExistantKey
> returns
> { "ExistantKey" }
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2168) SSTable2Json tool returns a
different key when a querying for a specific key in an SSTable that does
not exist
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-2168:
--------------------------------------
Reviewer: jbellis
Affects Version/s: (was: 0.6.11)
(was: 0.7.1)
Fix Version/s: 0.7.3
> SSTable2Json tool returns a different key when a querying for a specific key in an SSTable that does not exist
> --------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2168
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2168
> Project: Cassandra
> Issue Type: Bug
> Reporter: Benjamin Coverston
> Assignee: Benjamin Coverston
> Priority: Minor
> Fix For: 0.7.3
>
>
> bin/sstable2json storage/core/data/Foo/BAR-1-Data.db -k NonExistantKey
> returns
> { "ExistantKey" }
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CASSANDRA-2168) SSTable2Json tool returns a
different key when a querying for a specific key in an SSTable that does
not exist
Posted by "Benjamin Coverston (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002927#comment-13002927 ]
Benjamin Coverston commented on CASSANDRA-2168:
-----------------------------------------------
I made a simpler change. All I did was make a sanity check to see if after seeking the key matched the key we were looking for. If seek reached the end of the list it would only deserialize the row if it is the one we are looking for, otherwise it will continue to the next key in the for loop.
> SSTable2Json tool returns a different key when a querying for a specific key in an SSTable that does not exist
> --------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2168
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2168
> Project: Cassandra
> Issue Type: Bug
> Reporter: Benjamin Coverston
> Assignee: Benjamin Coverston
> Priority: Minor
> Fix For: 0.7.4
>
>
> bin/sstable2json storage/core/data/Foo/BAR-1-Data.db -k NonExistantKey
> returns
> { "ExistantKey" }
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (CASSANDRA-2168) SSTable2Json tool returns a
different key when a querying for a specific key in an SSTable that does
not exist
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis reassigned CASSANDRA-2168:
-----------------------------------------
Assignee: Benjamin Coverston
I think what we want is in the export overload that loops through the toExport list, we need to add a SSTableScanner.seekTo method that calls getPosition with Operator.EQ instead of GE (maybe we want to move the Operator into a parameter of SeekTo? there is only one other caller).
> SSTable2Json tool returns a different key when a querying for a specific key in an SSTable that does not exist
> --------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2168
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2168
> Project: Cassandra
> Issue Type: Bug
> Reporter: Benjamin Coverston
> Assignee: Benjamin Coverston
> Priority: Minor
> Fix For: 0.7.3
>
>
> bin/sstable2json storage/core/data/Foo/BAR-1-Data.db -k NonExistantKey
> returns
> { "ExistantKey" }
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira