You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jay Zhuang (JIRA)" <ji...@apache.org> on 2017/02/08 01:24:41 UTC
[jira] [Commented] (CASSANDRA-13188) compaction-stress
AssertionError from getMemtableFor()
[ https://issues.apache.org/jira/browse/CASSANDRA-13188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15857174#comment-15857174 ]
Jay Zhuang commented on CASSANDRA-13188:
----------------------------------------
The problem is because memtable [is not initialized for tool|https://github.com/apache/cassandra/blob/cassandra-3.11/src/java/org/apache/cassandra/db/ColumnFamilyStore.java#L410]
[The fix|https://github.com/cooldoger/cassandra/commit/d2ddeb75cbcbdd407aca33f56f4ab59552a13cdf] is attached.
[~tjake] would you please review.
An alternative fix would be changing [toolInitialization()|https://github.com/apache/cassandra/blob/cassandra-3.11/tools/stress/src/org/apache/cassandra/stress/CompactionStress.java#L77] to [daemonInitialization()|https://github.com/apache/cassandra/blob/cassandra-3.11/src/java/org/apache/cassandra/config/DatabaseDescriptor.java#L128]. (I prefer the first option, as compaction-stress is really a tool, not daemon).
> compaction-stress AssertionError from getMemtableFor()
> ------------------------------------------------------
>
> Key: CASSANDRA-13188
> URL: https://issues.apache.org/jira/browse/CASSANDRA-13188
> Project: Cassandra
> Issue Type: Bug
> Components: Testing, Tools
> Reporter: Jay Zhuang
> Assignee: Jay Zhuang
> Attachments: 13188-3.11.txt, 13188-3.11-update.txt
>
>
> Exception:
> {noformat}
> ./compaction-stress compact -d /tmp/compaction -p https://gist.githubusercontent.com/tjake/8995058fed11d9921e31/raw/a9334d1090017bf546d003e271747351a40692ea/blogpost.yaml -t 4
> WARN 18:45:04,854 JNA link failure, one or more native method will be unavailable.
> java.lang.AssertionError: []
> at org.apache.cassandra.db.lifecycle.Tracker.getMemtableFor(Tracker.java:312)
> at org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:1315)
> at org.apache.cassandra.db.Keyspace.applyInternal(Keyspace.java:618)
> at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:462)
> at org.apache.cassandra.db.Mutation.apply(Mutation.java:227)
> at org.apache.cassandra.db.Mutation.apply(Mutation.java:232)
> at org.apache.cassandra.db.Mutation.apply(Mutation.java:241)
> at org.apache.cassandra.cql3.statements.ModificationStatement.executeInternalWithoutCondition(ModificationStatement.java:570)
> at org.apache.cassandra.cql3.statements.ModificationStatement.executeInternal(ModificationStatement.java:564)
> at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:356)
> at org.apache.cassandra.schema.SchemaKeyspace.saveSystemKeyspacesSchema(SchemaKeyspace.java:265)
> at org.apache.cassandra.db.SystemKeyspace.finishStartup(SystemKeyspace.java:495)
> at org.apache.cassandra.stress.CompactionStress$Compaction.run(CompactionStress.java:209)
> at org.apache.cassandra.stress.CompactionStress.main(CompactionStress.java:349)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)