cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dan jatnieks (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6103) ConcurrentModificationException in TokenMetadata.cloneOnlyTokenMap
Date Sat, 28 Sep 2013 02:10:02 GMT

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

dan jatnieks commented on CASSANDRA-6103:
-----------------------------------------

I've run into the same error a couple times with a slightly different stack trace with DSE
3.1.3 (C* 1.2.6 I believe).

+1 on {{updateHostId}} as a likely source from my non-expert look at the code.

{noformat}
Exception encountered during startup
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
at java.util.HashMap$EntryIterator.next(HashMap.java:834)
at java.util.HashMap$EntryIterator.next(HashMap.java:832)
at com.google.common.collect.AbstractBiMap$EntrySet$1.next(AbstractBiMap.java:294)
at com.google.common.collect.AbstractBiMap$EntrySet$1.next(AbstractBiMap.java:286)
at com.google.common.collect.AbstractBiMap.putAll(AbstractBiMap.java:160)
at com.google.common.collect.HashBiMap.putAll(HashBiMap.java:42)
at com.google.common.collect.HashBiMap.create(HashBiMap.java:72)
at org.apache.cassandra.locator.TokenMetadata.cloneOnlyTokenMap(TokenMetadata.java:561)
at org.apache.cassandra.locator.TokenMetadata.cloneAfterAllLeft(TokenMetadata.java:582)
at org.apache.cassandra.service.StorageService.calculatePendingRanges(StorageService.java:1708)
at org.apache.cassandra.service.StorageService.calculatePendingRanges(StorageService.java:1686)
at org.apache.cassandra.service.StorageService.handleStateBootstrap(StorageService.java:1306)
at org.apache.cassandra.service.StorageService.onChange(StorageService.java:1207)
at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:935)
at org.apache.cassandra.gms.Gossiper.addLocalApplicationState(Gossiper.java:1102)
at org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:911)
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:699)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:554)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:451)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:342)
at com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:137)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:441)
at com.datastax.bdp.server.DseDaemon.main(DseDaemon.java:334)
{noformat}

                
> ConcurrentModificationException in TokenMetadata.cloneOnlyTokenMap
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-6103
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6103
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Mike Schrag
>             Fix For: 1.2.11
>
>
> This isn't reproducible for me, but it happened to one of the servers in our cluster
while starting up. It went away on a restart, but I figured it was worth filing anyway:
> ERROR [main] 2013-09-26 08:04:02,478 CassandraDaemon.java (line 464) Exception encountered
during startup
> java.util.ConcurrentModificationException
>         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
>         at java.util.HashMap$EntryIterator.next(HashMap.java:834)
>         at java.util.HashMap$EntryIterator.next(HashMap.java:832)
>         at com.google.common.collect.AbstractBiMap$EntrySet$1.next(AbstractBiMap.java:294)
>         at com.google.common.collect.AbstractBiMap$EntrySet$1.next(AbstractBiMap.java:286)
>         at com.google.common.collect.AbstractBiMap.putAll(AbstractBiMap.java:160)
>         at com.google.common.collect.HashBiMap.putAll(HashBiMap.java:42)
>         at com.google.common.collect.HashBiMap.create(HashBiMap.java:72)
>         at org.apache.cassandra.locator.TokenMetadata.cloneOnlyTokenMap(TokenMetadata.java:561)
>         at org.apache.cassandra.locator.AbstractReplicationStrategy.getAddressRanges(AbstractReplicationStrategy.java:192)
>         at org.apache.cassandra.service.StorageService.calculatePendingRanges(StorageService.java:1711)
>         at org.apache.cassandra.service.StorageService.calculatePendingRanges(StorageService.java:1692)
>         at org.apache.cassandra.service.StorageService.handleStateNormal(StorageService.java:1461)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:1228)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:949)
>         at org.apache.cassandra.gms.Gossiper.addLocalApplicationState(Gossiper.java:1116)
>         at org.apache.cassandra.service.StorageService.setTokens(StorageService.java:214)
>         at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:802)
>         at org.apache.cassandra.service.StorageService.initServer(StorageService.java:554)
>         at org.apache.cassandra.service.StorageService.initServer(StorageService.java:451)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message