Re: Get_count method error?

2009-12-22 Thread Adam Fisk
Just wanted to add I'm seeing the same thing on trunk running
everything with a consistency level of one.

I'm running -r893382 (a week back or so I believe).

All the Best,

-Adam


On Tue, Dec 15, 2009 at 7:25 PM, Brandon Williams dri...@gmail.com wrote:
 On Tue, Dec 15, 2009 at 9:19 PM, JKnight JKnight beukni...@gmail.com
 wrote:

 Dear Mr Jonathan,

 I have tested on version 0.4.2 and 0.5.0.
 The attachment contains my test case.

 You are inserting and performing get_count with a consistency level of one,
 but deleting with a consistency level of zero.  Can you try deleting with a
 consistency level of one also?
 -Brandon



-- 
Adam Fisk
http://www.littleshoot.org | http://adamfisk.wordpress.com |
http://twitter.com/adamfisk


Re: Get_count method error?

2009-12-22 Thread Jonathan Ellis
As I said, a test case against the example CF definitions
illustrating the problem would help us fix the problem.

-Jonathan

On Tue, Dec 22, 2009 at 8:56 PM, Adam Fisk a...@littleshoot.org wrote:
 Just wanted to add I'm seeing the same thing on trunk running
 everything with a consistency level of one.

 I'm running -r893382 (a week back or so I believe).


Re: Get_count method error?

2009-12-15 Thread Jonathan Ellis
there is similar logic already in multigetInternal, so it's not
immediately clear what the bug is.

can you supply a test case against the example CF definitions
illustrating the problem?

On Tue, Dec 15, 2009 at 4:03 AM, JKnight JKnight beukni...@gmail.com wrote:
 Dear Mr Jonathan,

 I have changed a litle in multigetColumns method in CassandraServer.java
 file to solve this error.

     if (columns != null  columns.size() != 0)
     {
                 IteratorIColumn columnItr = columns.iterator();
                 IColumn column;
                 while (columnItr.hasNext()) {
                     column = (IColumn) columnItr.next();
                     if(column.isMarkedForDelete()){
                         columns.remove(column);
                     }
                 }
     columnFamiliesMap.put(command.key, columns);
     }

 On Mon, Dec 14, 2009 at 8:33 AM, Jonathan Ellis jbel...@gmail.com wrote:

 yes, that would be a bug

 On 12/14/09, JKnight JKnight beukni...@gmail.com wrote:
  Dear all, I found method get_count still count deleted column. Is this
  an
  error?
 
  get_count
 
     -
 
     i32 get_count(keyspace, key, column_parent, consistency_level)
 
  Counts the columns present in column_parent.
 
  --
  Best regards,
  JKnight
 



 --
 Best regards,
 JKnight



Re: Get_count method error?

2009-12-15 Thread Jonathan Ellis
... oh, and what version are you running against?

On Tue, Dec 15, 2009 at 11:04 AM, Jonathan Ellis jbel...@gmail.com wrote:
 there is similar logic already in multigetInternal, so it's not
 immediately clear what the bug is.

 can you supply a test case against the example CF definitions
 illustrating the problem?

 On Tue, Dec 15, 2009 at 4:03 AM, JKnight JKnight beukni...@gmail.com wrote:
 Dear Mr Jonathan,

 I have changed a litle in multigetColumns method in CassandraServer.java
 file to solve this error.

     if (columns != null  columns.size() != 0)
     {
                 IteratorIColumn columnItr = columns.iterator();
                 IColumn column;
                 while (columnItr.hasNext()) {
                     column = (IColumn) columnItr.next();
                     if(column.isMarkedForDelete()){
                         columns.remove(column);
                     }
                 }
     columnFamiliesMap.put(command.key, columns);
     }

 On Mon, Dec 14, 2009 at 8:33 AM, Jonathan Ellis jbel...@gmail.com wrote:

 yes, that would be a bug

 On 12/14/09, JKnight JKnight beukni...@gmail.com wrote:
  Dear all, I found method get_count still count deleted column. Is this
  an
  error?
 
  get_count
 
     -
 
     i32 get_count(keyspace, key, column_parent, consistency_level)
 
  Counts the columns present in column_parent.
 
  --
  Best regards,
  JKnight
 



 --
 Best regards,
 JKnight




Re: Get_count method error?

2009-12-14 Thread Jonathan Ellis
yes, that would be a bug

On 12/14/09, JKnight JKnight beukni...@gmail.com wrote:
 Dear all, I found method get_count still count deleted column. Is this an
 error?

 get_count

-

i32 get_count(keyspace, key, column_parent, consistency_level)

 Counts the columns present in column_parent.

 --
 Best regards,
 JKnight



Get_count method error?

2009-12-13 Thread JKnight JKnight
Dear all, I found method get_count still count deleted column. Is this an
error?

get_count

   -

   i32 get_count(keyspace, key, column_parent, consistency_level)

Counts the columns present in column_parent.

-- 
Best regards,
JKnight