cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-1768) UnsupportedOperationException in system_update_column_family
Date Wed, 24 Nov 2010 18:21:13 GMT

    [ 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.


Mime
View raw message