You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Gasol Wu (JIRA)" <ji...@apache.org> on 2010/01/21 04:14:55 UTC
[jira] Created: (CASSANDRA-729) Bug in count columns.
Bug in count columns.
---------------------
Key: CASSANDRA-729
URL: https://issues.apache.org/jira/browse/CASSANDRA-729
Project: Cassandra
Issue Type: Bug
Components: Core
Affects Versions: 0.5
Environment: debian lenny, sun jdk 1.6
Reporter: Gasol Wu
same as thrift api (get_count).
Welcome to cassandra CLI.
Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
cassandra> connect localhost/9160
Connected to localhost/9160
cassandra> del Keyspace1.Standard1['1']
row removed.
cassandra> set Keyspace1.Standard1['1']['foo'] = 'foo value'
Value inserted.
cassandra> set Keyspace1.Standard1['1']['bar'] = 'bar value'
Value inserted.
cassandra> get Keyspace1.Standard1['1']
=> (column=foo, value=foo value, timestamp=1264043095206)
=> (column=bar, value=bar value, timestamp=1264043106184)
Returned 2 results.
cassandra> count Keyspace1.Standard1['1']
2 columns
cassandra> del Keyspace1.Standard1['1']['foo']
column removed.
cassandra> get Keyspace1.Standard1['1']
=> (column=bar, value=bar value, timestamp=1264043106184)
Returned 1 results.
cassandra> count Keyspace1.Standard1['1']
2 columns
cassandra>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CASSANDRA-729) Bug in count columns.
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis resolved CASSANDRA-729.
--------------------------------------
Resolution: Fixed
Assignee: (was: Jonathan Ellis)
lmorchard tested the 0.5 branch and reports that this bug is fixed now.
> Bug in count columns.
> ---------------------
>
> Key: CASSANDRA-729
> URL: https://issues.apache.org/jira/browse/CASSANDRA-729
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Environment: debian lenny, sun jdk 1.6
> Reporter: Gasol Wu
> Priority: Minor
> Fix For: 0.5
>
>
> same as thrift api (get_count).
> Welcome to cassandra CLI.
> Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
> cassandra> connect localhost/9160
> Connected to localhost/9160
> cassandra> del Keyspace1.Standard1['1']
> row removed.
> cassandra> set Keyspace1.Standard1['1']['foo'] = 'foo value'
> Value inserted.
> cassandra> set Keyspace1.Standard1['1']['bar'] = 'bar value'
> Value inserted.
> cassandra> get Keyspace1.Standard1['1']
> => (column=foo, value=foo value, timestamp=1264043095206)
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 2 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra> del Keyspace1.Standard1['1']['foo']
> column removed.
> cassandra> get Keyspace1.Standard1['1']
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 1 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-729) Bug in count columns.
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803153#action_12803153 ]
Jonathan Ellis commented on CASSANDRA-729:
------------------------------------------
this sounds like CASSANDRA-647, are you testing 0.5.0 final or an earlier release?
> Bug in count columns.
> ---------------------
>
> Key: CASSANDRA-729
> URL: https://issues.apache.org/jira/browse/CASSANDRA-729
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.5
> Environment: debian lenny, sun jdk 1.6
> Reporter: Gasol Wu
>
> same as thrift api (get_count).
> Welcome to cassandra CLI.
> Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
> cassandra> connect localhost/9160
> Connected to localhost/9160
> cassandra> del Keyspace1.Standard1['1']
> row removed.
> cassandra> set Keyspace1.Standard1['1']['foo'] = 'foo value'
> Value inserted.
> cassandra> set Keyspace1.Standard1['1']['bar'] = 'bar value'
> Value inserted.
> cassandra> get Keyspace1.Standard1['1']
> => (column=foo, value=foo value, timestamp=1264043095206)
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 2 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra> del Keyspace1.Standard1['1']['foo']
> column removed.
> cassandra> get Keyspace1.Standard1['1']
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 1 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-729) Bug in count columns.
Posted by "Gasol Wu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803155#action_12803155 ]
Gasol Wu commented on CASSANDRA-729:
------------------------------------
yes, testing in 0.5.0-rc3 and 0.5.0 final.
> Bug in count columns.
> ---------------------
>
> Key: CASSANDRA-729
> URL: https://issues.apache.org/jira/browse/CASSANDRA-729
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.5
> Environment: debian lenny, sun jdk 1.6
> Reporter: Gasol Wu
>
> same as thrift api (get_count).
> Welcome to cassandra CLI.
> Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
> cassandra> connect localhost/9160
> Connected to localhost/9160
> cassandra> del Keyspace1.Standard1['1']
> row removed.
> cassandra> set Keyspace1.Standard1['1']['foo'] = 'foo value'
> Value inserted.
> cassandra> set Keyspace1.Standard1['1']['bar'] = 'bar value'
> Value inserted.
> cassandra> get Keyspace1.Standard1['1']
> => (column=foo, value=foo value, timestamp=1264043095206)
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 2 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra> del Keyspace1.Standard1['1']['foo']
> column removed.
> cassandra> get Keyspace1.Standard1['1']
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 1 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-729) Bug in count columns.
Posted by "Gasol Wu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803648#action_12803648 ]
Gasol Wu commented on CASSANDRA-729:
------------------------------------
ColumnFamily.getSortedColumns() (return this.columns_) contains deleted column, it's odd.
i don't know how to fix.
CassandraServer.java
382: Map<String, Collection<IColumn>> columnsMap = multigetColumns(commands, consistency_level);
for (ReadCommand command: commands)
{
Collection<IColumn> columns = columnsMap.get(command.key);
if(columns == null)
{
columnFamiliesMap.put(command.key, 0);
}
else
{
394: columnFamiliesMap.put(command.key, columns.size()); // contains removed column,
}
}
return columnFamiliesMap;
> Bug in count columns.
> ---------------------
>
> Key: CASSANDRA-729
> URL: https://issues.apache.org/jira/browse/CASSANDRA-729
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.5
> Environment: debian lenny, sun jdk 1.6
> Reporter: Gasol Wu
>
> same as thrift api (get_count).
> Welcome to cassandra CLI.
> Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
> cassandra> connect localhost/9160
> Connected to localhost/9160
> cassandra> del Keyspace1.Standard1['1']
> row removed.
> cassandra> set Keyspace1.Standard1['1']['foo'] = 'foo value'
> Value inserted.
> cassandra> set Keyspace1.Standard1['1']['bar'] = 'bar value'
> Value inserted.
> cassandra> get Keyspace1.Standard1['1']
> => (column=foo, value=foo value, timestamp=1264043095206)
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 2 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra> del Keyspace1.Standard1['1']['foo']
> column removed.
> cassandra> get Keyspace1.Standard1['1']
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 1 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-729) Bug in count columns.
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-729:
-------------------------------------
Priority: Minor (was: Major)
Affects Version/s: (was: 0.5)
Fix Version/s: 0.5
Assignee: Jonathan Ellis
> Bug in count columns.
> ---------------------
>
> Key: CASSANDRA-729
> URL: https://issues.apache.org/jira/browse/CASSANDRA-729
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Environment: debian lenny, sun jdk 1.6
> Reporter: Gasol Wu
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.5
>
>
> same as thrift api (get_count).
> Welcome to cassandra CLI.
> Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
> cassandra> connect localhost/9160
> Connected to localhost/9160
> cassandra> del Keyspace1.Standard1['1']
> row removed.
> cassandra> set Keyspace1.Standard1['1']['foo'] = 'foo value'
> Value inserted.
> cassandra> set Keyspace1.Standard1['1']['bar'] = 'bar value'
> Value inserted.
> cassandra> get Keyspace1.Standard1['1']
> => (column=foo, value=foo value, timestamp=1264043095206)
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 2 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra> del Keyspace1.Standard1['1']['foo']
> column removed.
> cassandra> get Keyspace1.Standard1['1']
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 1 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-729) Bug in count columns.
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829667#action_12829667 ]
Jonathan Ellis commented on CASSANDRA-729:
------------------------------------------
Looks to me like this was fixed by the patch for CASSANDRA-703; can you verify that it works for you in the 0.5 branch?
> Bug in count columns.
> ---------------------
>
> Key: CASSANDRA-729
> URL: https://issues.apache.org/jira/browse/CASSANDRA-729
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Environment: debian lenny, sun jdk 1.6
> Reporter: Gasol Wu
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.5
>
>
> same as thrift api (get_count).
> Welcome to cassandra CLI.
> Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
> cassandra> connect localhost/9160
> Connected to localhost/9160
> cassandra> del Keyspace1.Standard1['1']
> row removed.
> cassandra> set Keyspace1.Standard1['1']['foo'] = 'foo value'
> Value inserted.
> cassandra> set Keyspace1.Standard1['1']['bar'] = 'bar value'
> Value inserted.
> cassandra> get Keyspace1.Standard1['1']
> => (column=foo, value=foo value, timestamp=1264043095206)
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 2 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra> del Keyspace1.Standard1['1']['foo']
> column removed.
> cassandra> get Keyspace1.Standard1['1']
> => (column=bar, value=bar value, timestamp=1264043106184)
> Returned 1 results.
> cassandra> count Keyspace1.Standard1['1']
> 2 columns
> cassandra>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.