You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sebastian Estevez (JIRA)" <ji...@apache.org> on 2015/01/07 04:50:35 UTC
[jira] [Commented] (CASSANDRA-8537) ConcurrentModificationException
while executing 'nodetool cleanup'
[ https://issues.apache.org/jira/browse/CASSANDRA-8537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14267253#comment-14267253 ]
Sebastian Estevez commented on CASSANDRA-8537:
----------------------------------------------
Seeing this same stacktrace in a 2.1.2 cluster:
@cassandra11:~$ nodetool cleanup
error: null
-- StackTrace --
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859)
at java.util.ArrayList$Itr.next(ArrayList.java:831)
at org.apache.cassandra.db.index.SecondaryIndexManager.deleteFromIndexes(SecondaryIndexManager.java:476)
at org.apache.cassandra.db.compaction.CompactionManager$CleanupStrategy$Full.cleanup(CompactionManager.java:833)
at org.apache.cassandra.db.compaction.CompactionManager.doCleanupOne(CompactionManager.java:704)
at org.apache.cassandra.db.compaction.CompactionManager.access$400(CompactionManager.java:97)
at org.apache.cassandra.db.compaction.CompactionManager$5.execute(CompactionManager.java:370)
at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:267)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
> ConcurrentModificationException while executing 'nodetool cleanup'
> ------------------------------------------------------------------
>
> Key: CASSANDRA-8537
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8537
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Environment: Debian 7.7, Oracle JRE 1.7.0_72
> Reporter: Noureddine Chatti
> Assignee: Marcus Eriksson
> Priority: Minor
> Fix For: 2.1.3
>
>
> After adding a new node to an existing cluster (7 already started nodes), and waiting a few minutes to be sure that data migration to the new node is completed, I began to use the command nodetool cleanup sequentially on each old node. When I issued this command on the third node, after a few minutes I got a ConcurrentModificationException.
> ~$ nodetool cleanup
> error: null
> -- StackTrace --
> java.util.ConcurrentModificationException
> at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
> at java.util.ArrayList$Itr.next(Unknown Source)
> at org.apache.cassandra.db.index.SecondaryIndexManager.deleteFromIndexes(SecondaryIndexManager.java:476)
> at org.apache.cassandra.db.compaction.CompactionManager$CleanupStrategy$Full.cleanup(CompactionManager.java:833)
> at org.apache.cassandra.db.compaction.CompactionManager.doCleanupOne(CompactionManager.java:704)
> at org.apache.cassandra.db.compaction.CompactionManager.access$400(CompactionManager.java:97)
> at org.apache.cassandra.db.compaction.CompactionManager$5.execute(CompactionManager.java:370)
> at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:267)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)