You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "T Jake Luciani (Created) (JIRA)" <ji...@apache.org> on 2012/02/03 15:29:54 UTC

[jira] [Created] (CASSANDRA-3844) Truncate leaves behind non-CFS backed secondary indexes

Truncate leaves behind non-CFS backed secondary indexes
-------------------------------------------------------

                 Key: CASSANDRA-3844
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3844
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 1.0.7
            Reporter: T Jake Luciani
            Assignee: Pavel Yaskevich
            Priority: Minor
             Fix For: 1.0.8


If you setup a CF with a non-cfs backed secondary index then trucate it, nothing happens to the secondary index. we need a hook for CFStore to clean these up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3844) Truncate leaves behind non-CFS backed secondary indexes

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

T Jake Luciani commented on CASSANDRA-3844:
-------------------------------------------

+1
                
> Truncate leaves behind non-CFS backed secondary indexes
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3844
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3844
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.7
>            Reporter: T Jake Luciani
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3844.patch
>
>
> If you setup a CF with a non-cfs backed secondary index then trucate it, nothing happens to the secondary index. we need a hook for CFStore to clean these up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3844) Truncate leaves behind non-CFS backed secondary indexes

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

Pavel Yaskevich updated CASSANDRA-3844:
---------------------------------------

    Attachment: CASSANDRA-3844.patch

uses IdentityHashMap in SecondaryIndexManager.getIndexes()
                
> Truncate leaves behind non-CFS backed secondary indexes
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3844
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3844
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.7
>            Reporter: T Jake Luciani
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3844.patch
>
>
> If you setup a CF with a non-cfs backed secondary index then trucate it, nothing happens to the secondary index. we need a hook for CFStore to clean these up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3844) Truncate leaves behind non-CFS backed secondary indexes

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

T Jake Luciani commented on CASSANDRA-3844:
-------------------------------------------

SIM.getIndexes() should use a IdenenityHashMap since PerRowSecondaryIndexes share the same instance across rows.
                
> Truncate leaves behind non-CFS backed secondary indexes
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3844
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3844
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.7
>            Reporter: T Jake Luciani
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3844.patch
>
>
> If you setup a CF with a non-cfs backed secondary index then trucate it, nothing happens to the secondary index. we need a hook for CFStore to clean these up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3844) Truncate leaves behind non-CFS backed secondary indexes

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

Pavel Yaskevich updated CASSANDRA-3844:
---------------------------------------

    Attachment: CASSANDRA-3844.patch

renamed CFS.truncateSSTables(long) to CFS.discardSSTables(long).
                
> Truncate leaves behind non-CFS backed secondary indexes
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3844
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3844
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.7
>            Reporter: T Jake Luciani
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3844.patch
>
>
> If you setup a CF with a non-cfs backed secondary index then trucate it, nothing happens to the secondary index. we need a hook for CFStore to clean these up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3844) Truncate leaves behind non-CFS backed secondary indexes

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

Pavel Yaskevich updated CASSANDRA-3844:
---------------------------------------

    Attachment: CASSANDRA-3844.patch

This patch encapsulates truncate logic into SecondaryIndex.truncate(long) abstract method so every type of indices would be able to implement desired logic (currently implemented for KeysIndex), which also removes a good bit of code from CompactionManager.submitTruncate(...).
                
> Truncate leaves behind non-CFS backed secondary indexes
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3844
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3844
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.7
>            Reporter: T Jake Luciani
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3844.patch
>
>
> If you setup a CF with a non-cfs backed secondary index then trucate it, nothing happens to the secondary index. we need a hook for CFStore to clean these up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3844) Truncate leaves behind non-CFS backed secondary indexes

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

Pavel Yaskevich updated CASSANDRA-3844:
---------------------------------------

    Attachment:     (was: CASSANDRA-3844.patch)
    
> Truncate leaves behind non-CFS backed secondary indexes
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3844
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3844
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.7
>            Reporter: T Jake Luciani
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3844.patch
>
>
> If you setup a CF with a non-cfs backed secondary index then trucate it, nothing happens to the secondary index. we need a hook for CFStore to clean these up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3844) Truncate leaves behind non-CFS backed secondary indexes

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

Pavel Yaskevich updated CASSANDRA-3844:
---------------------------------------

    Attachment:     (was: CASSANDRA-3844.patch)
    
> Truncate leaves behind non-CFS backed secondary indexes
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3844
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3844
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.7
>            Reporter: T Jake Luciani
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.8
>
>
> If you setup a CF with a non-cfs backed secondary index then trucate it, nothing happens to the secondary index. we need a hook for CFStore to clean these up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira