You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Pavel Yaskevich (Commented) (JIRA)" <ji...@apache.org> on 2011/11/29 16:50:40 UTC

[jira] [Commented] (CASSANDRA-3217) javax.management.InstanceAlreadyExistsException: during startup

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

Pavel Yaskevich commented on CASSANDRA-3217:
--------------------------------------------

After looking at the code I don't see a how keyspace can have two column families with identical names but with different cfIds (in case when cfIds are the same it would fail on assert in Table.initCf) because KSMetaData places CFMetaData instances into the Map where key is the cfName. Error happens in the setup() right after DatabaseDescriptor.loadSchemas() deserialized last schema information for the SCHEMA_CF, I see only possibility - bug in Avro which is triggered when the schema in changed... Can you please provide more information about the status of your cluster and schema when this error happened?
                
> javax.management.InstanceAlreadyExistsException: during startup
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-3217
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3217
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.5
>            Reporter: Thibaut
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>
> Hi,
> I got this error on one machines after restarting (the node could have been killed due to an outofmemory error). It would crash on each restart on this error.
> I copied over the system table from another machine and deleted the locationinfo files and everything worked fine.
> I also had to delete 2 db files which coulnd't be loaded due to UTF-8 encoding errors. These rows were from the same table_feedfetch. The node might have memory errors, I'm going to check this. So it might be related to that.
> ERROR [main] 2011-09-16 16:13:18,468 AbstractCassandraDaemon.java (line 358) Exception encountered during startup.
> java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: org.apache.cassandra.db:type=ColumnFamilies,keyspace=table_feedfetch,columnfamily=table_feedfetch
>         at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:303)
>         at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:465)
>         at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:435)
>         at org.apache.cassandra.db.Table.initCf(Table.java:369)
>         at org.apache.cassandra.db.Table.<init>(Table.java:306)
>         at org.apache.cassandra.db.Table.open(Table.java:111)
>         at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:187)
>         at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:341)
>         at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:97)
> Caused by: javax.management.InstanceAlreadyExistsException: org.apache.cassandra.db:type=ColumnFamilies,keyspace=table_feedfetch,columnfamily=table_feedfetch
>         at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
>         at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
>         at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:299)
>         ... 8 more

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