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 (JIRA)" <ji...@apache.org> on 2010/11/23 03:16:13 UTC

[jira] Created: (CASSANDRA-1768) UnsupportedOperationException in system_update_column_family

UnsupportedOperationException in system_update_column_family
------------------------------------------------------------

                 Key: CASSANDRA-1768
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1768
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.7.0
            Reporter: T Jake Luciani


During testing I hit this section of code:

CFMetaData.java:662
{code}
 // remove the ones leaving.
       for (ByteBuffer indexName : toRemove)
           column_metadata.remove(indexName);
{code}

but column_metadata is defined as:

{code}
       this.column_metadata = Collections.unmodifiableMap(column_metadata);
{code}

So remove() will throw an exception.

{code}
java.lang.UnsupportedOperationException
        at java.util.Collections$UnmodifiableMap.remove(Collections.java:1288)
        at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:662)
        at org.apache.cassandra.db.migration.UpdateColumnFamily.<init>(UpdateColumnFamily.java:56)
        at org.apache.cassandra.thrift.CassandraServer.system_update_column_family(CassandraServer.java:863)
        at org.apache.cassandra.thrift.Cassandra$Processor$system_update_column_family.process(Cassandra.java:3592)
        at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555)
        at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:680)
{code}

This was introduced by CASSANDRA-1715

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1768) UnsupportedOperationException in system_update_column_family

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

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

+1, there is no chance it could be called concurrently correct?

> UnsupportedOperationException in system_update_column_family
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-1768
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1768
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0 rc 1
>            Reporter: T Jake Luciani
>            Assignee: Gary Dusbabek
>         Attachments: v0-0001-fix-add-remove-index-bugs-in-CFMetadata.txt
>
>
> During testing I hit this section of code:
> CFMetaData.java:662
> {code}
>  // remove the ones leaving.
>        for (ByteBuffer indexName : toRemove)
>            column_metadata.remove(indexName);
> {code}
> but column_metadata is defined as:
> {code}
>        this.column_metadata = Collections.unmodifiableMap(column_metadata);
> {code}
> So remove() will throw an exception.
> {code}
> java.lang.UnsupportedOperationException
>         at java.util.Collections$UnmodifiableMap.remove(Collections.java:1288)
>         at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:662)
>         at org.apache.cassandra.db.migration.UpdateColumnFamily.<init>(UpdateColumnFamily.java:56)
>         at org.apache.cassandra.thrift.CassandraServer.system_update_column_family(CassandraServer.java:863)
>         at org.apache.cassandra.thrift.Cassandra$Processor$system_update_column_family.process(Cassandra.java:3592)
>         at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555)
>         at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:680)
> {code}
> This was introduced by CASSANDRA-1715

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1768) UnsupportedOperationException in system_update_column_family

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

Gary Dusbabek updated CASSANDRA-1768:
-------------------------------------

    Attachment: v0-0001-fix-add-remove-index-bugs-in-CFMetadata.txt

> UnsupportedOperationException in system_update_column_family
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-1768
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1768
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>            Reporter: T Jake Luciani
>            Assignee: Gary Dusbabek
>         Attachments: v0-0001-fix-add-remove-index-bugs-in-CFMetadata.txt
>
>
> During testing I hit this section of code:
> CFMetaData.java:662
> {code}
>  // remove the ones leaving.
>        for (ByteBuffer indexName : toRemove)
>            column_metadata.remove(indexName);
> {code}
> but column_metadata is defined as:
> {code}
>        this.column_metadata = Collections.unmodifiableMap(column_metadata);
> {code}
> So remove() will throw an exception.
> {code}
> java.lang.UnsupportedOperationException
>         at java.util.Collections$UnmodifiableMap.remove(Collections.java:1288)
>         at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:662)
>         at org.apache.cassandra.db.migration.UpdateColumnFamily.<init>(UpdateColumnFamily.java:56)
>         at org.apache.cassandra.thrift.CassandraServer.system_update_column_family(CassandraServer.java:863)
>         at org.apache.cassandra.thrift.Cassandra$Processor$system_update_column_family.process(Cassandra.java:3592)
>         at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555)
>         at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:680)
> {code}
> This was introduced by CASSANDRA-1715

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1768) UnsupportedOperationException in system_update_column_family

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

Hudson commented on CASSANDRA-1768:
-----------------------------------

Integrated in Cassandra #606 (See [https://hudson.apache.org/hudson/job/Cassandra/606/])
    fix add/remove index bugs in CFMetadata. patch by gdusbabek, reviewed by tjake. CASSANDRA-1768


> UnsupportedOperationException in system_update_column_family
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-1768
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1768
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0 rc 1
>            Reporter: T Jake Luciani
>            Assignee: Gary Dusbabek
>             Fix For: 0.7.0
>
>         Attachments: v0-0001-fix-add-remove-index-bugs-in-CFMetadata.txt
>
>
> During testing I hit this section of code:
> CFMetaData.java:662
> {code}
>  // remove the ones leaving.
>        for (ByteBuffer indexName : toRemove)
>            column_metadata.remove(indexName);
> {code}
> but column_metadata is defined as:
> {code}
>        this.column_metadata = Collections.unmodifiableMap(column_metadata);
> {code}
> So remove() will throw an exception.
> {code}
> java.lang.UnsupportedOperationException
>         at java.util.Collections$UnmodifiableMap.remove(Collections.java:1288)
>         at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:662)
>         at org.apache.cassandra.db.migration.UpdateColumnFamily.<init>(UpdateColumnFamily.java:56)
>         at org.apache.cassandra.thrift.CassandraServer.system_update_column_family(CassandraServer.java:863)
>         at org.apache.cassandra.thrift.Cassandra$Processor$system_update_column_family.process(Cassandra.java:3592)
>         at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555)
>         at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:680)
> {code}
> This was introduced by CASSANDRA-1715

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1768) UnsupportedOperationException in system_update_column_family

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

Hudson commented on CASSANDRA-1768:
-----------------------------------

Integrated in Cassandra-0.7 #70 (See [https://hudson.apache.org/hudson/job/Cassandra-0.7/70/])
    

> UnsupportedOperationException in system_update_column_family
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-1768
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1768
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0 rc 1
>            Reporter: T Jake Luciani
>            Assignee: Gary Dusbabek
>             Fix For: 0.7.0 rc 2
>
>         Attachments: v0-0001-fix-add-remove-index-bugs-in-CFMetadata.txt
>
>
> During testing I hit this section of code:
> CFMetaData.java:662
> {code}
>  // remove the ones leaving.
>        for (ByteBuffer indexName : toRemove)
>            column_metadata.remove(indexName);
> {code}
> but column_metadata is defined as:
> {code}
>        this.column_metadata = Collections.unmodifiableMap(column_metadata);
> {code}
> So remove() will throw an exception.
> {code}
> java.lang.UnsupportedOperationException
>         at java.util.Collections$UnmodifiableMap.remove(Collections.java:1288)
>         at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:662)
>         at org.apache.cassandra.db.migration.UpdateColumnFamily.<init>(UpdateColumnFamily.java:56)
>         at org.apache.cassandra.thrift.CassandraServer.system_update_column_family(CassandraServer.java:863)
>         at org.apache.cassandra.thrift.Cassandra$Processor$system_update_column_family.process(Cassandra.java:3592)
>         at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555)
>         at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:680)
> {code}
> This was introduced by CASSANDRA-1715

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CASSANDRA-1768) UnsupportedOperationException in system_update_column_family

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

Gary Dusbabek reassigned CASSANDRA-1768:
----------------------------------------

    Assignee: Gary Dusbabek

> UnsupportedOperationException in system_update_column_family
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-1768
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1768
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>            Reporter: T Jake Luciani
>            Assignee: Gary Dusbabek
>
> During testing I hit this section of code:
> CFMetaData.java:662
> {code}
>  // remove the ones leaving.
>        for (ByteBuffer indexName : toRemove)
>            column_metadata.remove(indexName);
> {code}
> but column_metadata is defined as:
> {code}
>        this.column_metadata = Collections.unmodifiableMap(column_metadata);
> {code}
> So remove() will throw an exception.
> {code}
> java.lang.UnsupportedOperationException
>         at java.util.Collections$UnmodifiableMap.remove(Collections.java:1288)
>         at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:662)
>         at org.apache.cassandra.db.migration.UpdateColumnFamily.<init>(UpdateColumnFamily.java:56)
>         at org.apache.cassandra.thrift.CassandraServer.system_update_column_family(CassandraServer.java:863)
>         at org.apache.cassandra.thrift.Cassandra$Processor$system_update_column_family.process(Cassandra.java:3592)
>         at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555)
>         at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:680)
> {code}
> This was introduced by CASSANDRA-1715

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1768) UnsupportedOperationException in system_update_column_family

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

Jonathan Ellis updated CASSANDRA-1768:
--------------------------------------

    Fix Version/s: 0.7.0

> UnsupportedOperationException in system_update_column_family
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-1768
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1768
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0 rc 1
>            Reporter: T Jake Luciani
>            Assignee: Gary Dusbabek
>             Fix For: 0.7.0
>
>         Attachments: v0-0001-fix-add-remove-index-bugs-in-CFMetadata.txt
>
>
> During testing I hit this section of code:
> CFMetaData.java:662
> {code}
>  // remove the ones leaving.
>        for (ByteBuffer indexName : toRemove)
>            column_metadata.remove(indexName);
> {code}
> but column_metadata is defined as:
> {code}
>        this.column_metadata = Collections.unmodifiableMap(column_metadata);
> {code}
> So remove() will throw an exception.
> {code}
> java.lang.UnsupportedOperationException
>         at java.util.Collections$UnmodifiableMap.remove(Collections.java:1288)
>         at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:662)
>         at org.apache.cassandra.db.migration.UpdateColumnFamily.<init>(UpdateColumnFamily.java:56)
>         at org.apache.cassandra.thrift.CassandraServer.system_update_column_family(CassandraServer.java:863)
>         at org.apache.cassandra.thrift.Cassandra$Processor$system_update_column_family.process(Cassandra.java:3592)
>         at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555)
>         at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:680)
> {code}
> This was introduced by CASSANDRA-1715

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1768) UnsupportedOperationException in system_update_column_family

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

Gary Dusbabek commented on CASSANDRA-1768:
------------------------------------------

correct. the mutation state is single-threaded.

> UnsupportedOperationException in system_update_column_family
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-1768
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1768
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0 rc 1
>            Reporter: T Jake Luciani
>            Assignee: Gary Dusbabek
>         Attachments: v0-0001-fix-add-remove-index-bugs-in-CFMetadata.txt
>
>
> During testing I hit this section of code:
> CFMetaData.java:662
> {code}
>  // remove the ones leaving.
>        for (ByteBuffer indexName : toRemove)
>            column_metadata.remove(indexName);
> {code}
> but column_metadata is defined as:
> {code}
>        this.column_metadata = Collections.unmodifiableMap(column_metadata);
> {code}
> So remove() will throw an exception.
> {code}
> java.lang.UnsupportedOperationException
>         at java.util.Collections$UnmodifiableMap.remove(Collections.java:1288)
>         at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:662)
>         at org.apache.cassandra.db.migration.UpdateColumnFamily.<init>(UpdateColumnFamily.java:56)
>         at org.apache.cassandra.thrift.CassandraServer.system_update_column_family(CassandraServer.java:863)
>         at org.apache.cassandra.thrift.Cassandra$Processor$system_update_column_family.process(Cassandra.java:3592)
>         at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555)
>         at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:680)
> {code}
> This was introduced by CASSANDRA-1715

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.