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

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

[~krummas] Hi. I'm ready to test the patch, but tbh I can't find a build 
anywhere and the tests failed?

> 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
>          Components: Lifecycle
>            Reporter: ingard mevåg
>            Assignee: Marcus Eriksson
>            Priority: Major
>             Fix For: 3.0.x, 3.11.x, 4.x
>
>         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-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to