cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ingard mevåg (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-14826) cassandra spinning forever on 1 thread while initializing keyspace
Date Wed, 17 Oct 2018 13:02:00 GMT

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

ingard mevåg commented on CASSANDRA-14826:
------------------------------------------

[~KurtG] yeah sure. In this case we won't add any more nodes, and it works ok for the use
case, but what should be improved is the single threaded whatever-is-going-on that takes over
1 hour on startup :)

> cassandra spinning forever on 1 thread while initializing keyspace
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-14826
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14826
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: ingard mevåg
>            Assignee: Marcus Eriksson
>            Priority: Major
>         Attachments: Screen Shot 2018-10-16 at 14.51.27.png
>
>
> When starting cassandra 3.0.17 it takes a long time to initialize a keyspace.
> top shows 1 thread spinning at 100% cpu. Thread dump shows:
> {code:java}
> "main" - Thread t@1
>     java.lang.Thread.State: RUNNABLE
>          at java.util.TimSort.mergeHi(TimSort.java:850)
>          at java.util.TimSort.mergeAt(TimSort.java:516)
>          at java.util.TimSort.mergeCollapse(TimSort.java:441)
>          at java.util.TimSort.sort(TimSort.java:245)
>          at java.util.Arrays.sort(Arrays.java:1512)
>          at java.util.ArrayList.sort(ArrayList.java:1454)
>          at java.util.Collections.sort(Collections.java:175)
>          at org.apache.cassandra.db.compaction.LeveledManifest.canAddSSTable(LeveledManifest.java:243)
>          at org.apache.cassandra.db.compaction.LeveledManifest.add(LeveledManifest.java:146)
>          - locked <c89b563> (a org.apache.cassandra.db.compaction.LeveledManifest)
>          at org.apache.cassandra.db.compaction.LeveledCompactionStrategy.addSSTable(LeveledCompactionStrategy.java:298)
>          at org.apache.cassandra.db.compaction.CompactionStrategyManager.startup(CompactionStrategyManager.java:135)
>          at org.apache.cassandra.db.compaction.CompactionStrategyManager.reload(CompactionStrategyManager.java:187)
>          - locked <742bfce7> (a org.apache.cassandra.db.compaction.CompactionStrategyManager)
>          at org.apache.cassandra.db.compaction.CompactionStrategyManager.<init>(CompactionStrategyManager.java:75)
>          at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:408)
>          at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:363)
>          at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:579)
>          - locked <4e4f20d2> (a java.lang.Class)
>          at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:556)
>          at org.apache.cassandra.db.Keyspace.initCf(Keyspace.java:368)
>          at org.apache.cassandra.db.Keyspace.<init>(Keyspace.java:305)
>          at org.apache.cassandra.db.Keyspace.open(Keyspace.java:129)
>          - locked <5318346c> (a java.lang.Class)
>          at org.apache.cassandra.db.Keyspace.open(Keyspace.java:106)
>          at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:262)
>          at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:569)
>          at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:697)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message