[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=15982881#comment-15982881 ] T Jake Luciani commented on CASSANDRA-13188: Changes look good, kicked off CI ||branch|testall|dtests|| |3.11|[testall|http://cassci.datastax.com/job/tjake-CASSANDRA-13188-testal]l|[dtest|http://cassci.datastax.com/job/tjake-CASSANDRA-13188-dtest]| |trunk|[testall|http://cassci.datastax.com/job/tjake-CASSANDRA-13188-trunk-testall]|[dtest|http://cassci.datastax.com/job/tjake-CASSANDRA-13188-trunk-dtest]| > 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 > > 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)
[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=15982250#comment-15982250 ] T Jake Luciani commented on CASSANDRA-13188: [~jay.zhuang] thank you for this patch and the test. I'll take a tomorrow > 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 > > 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)
[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=15961467#comment-15961467 ] Jay Zhuang commented on CASSANDRA-13188: Make sense. Thanks [~yukim] for the review. Updated: |[3.11|https://github.com/cooldoger/cassandra/commit/852647ce383aadc465bdf06e9c87d772574827c1] |[trunk|https://github.com/cooldoger/cassandra/commit/ce51690f3aef5241ca8dd852f83bd04ddb18e23d]| [~yukim] would you please review the change? > 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 > > 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)
[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=15960363#comment-15960363 ] Yuki Morishita commented on CASSANDRA-13188: It is not initialized because Memtable is tied to commit log, so it creates commit log in commit log directory (CASSANDRA-8616). Option here is to do daemonInitialization in tool. > 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 > > 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)
[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=15960215#comment-15960215 ] Jay Zhuang commented on CASSANDRA-13188: Rebased the code: |[3.11| https://github.com/cooldoger/cassandra/commit/2de68a8ca3d25fa030d8e1a65de68198ea244de2] | [trunk|https://github.com/cooldoger/cassandra/commit/64912267433c304b1a736df65014f54f177b2e21] | Passed utest locally. Please review. > 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)
[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)