cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Thompson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7831) recreating a counter column after dropping it leaves in unusable state
Date Wed, 27 Aug 2014 19:07:59 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-7831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14112661#comment-14112661
] 

Philip Thompson commented on CASSANDRA-7831:
--------------------------------------------

[~iamaleksey] No need to add a dtest, I can do so.

> recreating a counter column after dropping it leaves in unusable state
> ----------------------------------------------------------------------
>
>                 Key: CASSANDRA-7831
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7831
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Peter M├Ądel
>            Assignee: Aleksey Yeschenko
>             Fix For: 2.0.11, 2.1.0
>
>         Attachments: 7831.txt
>
>
> create table counter_bug (t int, c counter, primary key (t));
> update counter_bug set c = c +1 where t = 1;
> select * from counter_bug ;
>  
>  t | c
> ---+---
>  1 | 1
>  
> (1 rows)
>  
> alter table counter_bug drop c;
> alter table counter_bug add c counter;
> update counter_bug set c = c +1 where t = 1;
> select * from counter_bug;
>  
> (0 rows)
> update counter_bug set c = c +1 where t = 2;
> select * from counter_bug;
>  
> (0 rows)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message