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 Ellis (JIRA)" <ji...@apache.org> on 2011/03/13 05:43:59 UTC

[jira] Created: (CASSANDRA-2320) Dropping an index leaves index in Built state in system table

Dropping an index leaves index in Built state in system table
-------------------------------------------------------------

                 Key: CASSANDRA-2320
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2320
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.7.0
            Reporter: Jonathan Ellis
            Assignee: Jonathan Ellis
            Priority: Minor
             Fix For: 0.7.5




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (CASSANDRA-2320) Dropping an index leaves index in Built state in system table

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2320:
--------------------------------------

    Attachment: 2320.txt

setIndexRemoved was called with the wrong columnfamily name, so the old index name remained in the built state.

this is harmless unless you want to recreate the index afterwards, and then it is fatal (because addIndex says "never mind, it's already built).  Workaround is to give a different index name when re-creating.

patch attached with failing test + fix.

> Dropping an index leaves index in Built state in system table
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-2320
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2320
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.5
>
>         Attachments: 2320.txt
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (CASSANDRA-2320) Dropping an index leaves index in Built state in system table

Posted by "Matthew F. Dennis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006600#comment-13006600 ] 

Matthew F. Dennis commented on CASSANDRA-2320:
----------------------------------------------

I'd rather see the index build scheduled at the end of addIndex scheduled via an executor of some sort instead of creating a new thread each time, but otherwise patch looks good.


> Dropping an index leaves index in Built state in system table
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-2320
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2320
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.5
>
>         Attachments: 2320.txt
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (CASSANDRA-2320) Dropping an index leaves index in Built state in system table

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006616#comment-13006616 ] 

Hudson commented on CASSANDRA-2320:
-----------------------------------

Integrated in Cassandra-0.7 #379 (See [https://hudson.apache.org/hudson/job/Cassandra-0.7/379/])
    clear Built flag in system table when dropping an index
patch by jbellis; reviewed by mdennis for CASSANDRA-2320


> Dropping an index leaves index in Built state in system table
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-2320
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2320
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.5
>
>         Attachments: 2320.txt
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira