[ https://issues.apache.org/jira/browse/CASSANDRA-14238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16504139#comment-16504139 ]
Jay Zhuang edited comment on CASSANDRA-14238 at 6/7/18 1:45 AM: ---------------------------------------------------------------- +1 Thanks [~krummas] for the fix. Seems the following positions will cause an assertion exception and fail the test: {{2, 3, 114, 115}}. [test code|https://github.com/cooldoger/cassandra/commit/32e01cf4d144625eeec207708d90242f195e21b9]. Command to test: {noformat} $ for i in {0..180}; do echo == $i; ant test -Dtest.name=BlacklistingCompactionsTest -DTest.BadPos=$i >> /dev/null 2>&1 && echo "okay" || echo "failed"; done {noformat} was (Author: jay.zhuang): +1 Thanks [~krummas] for the fix. Seems the following position will cause an assertion exception and fail the test: {{2, 3, 114, 115}}. [test code|https://github.com/cooldoger/cassandra/commit/32e01cf4d144625eeec207708d90242f195e21b9]. Command to test: {noformat} $ for i in {0..180}; do echo == $i; ant test -Dtest.name=BlacklistingCompactionsTest -DTest.BadPos=$i >> /dev/null 2>&1 && echo "okay" || echo "failed"; done {noformat} > Flaky Unittest: org.apache.cassandra.db.compaction.BlacklistingCompactionsTest > ------------------------------------------------------------------------------ > > Key: CASSANDRA-14238 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14238 > Project: Cassandra > Issue Type: Bug > Components: Testing > Reporter: Jay Zhuang > Assignee: Marcus Eriksson > Priority: Minor > Labels: testing > Fix For: 2.2.x > > > The unittest is flaky > {noformat} > [junit] Testcase: > testBlacklistingWithSizeTieredCompactionStrategy(org.apache.cassandra.db.compaction.BlacklistingCompactionsTest): > FAILED > [junit] expected:<8> but was:<25> > [junit] junit.framework.AssertionFailedError: expected:<8> but was:<25> > [junit] at > org.apache.cassandra.db.compaction.BlacklistingCompactionsTest.testBlacklisting(BlacklistingCompactionsTest.java:170) > [junit] at > org.apache.cassandra.db.compaction.BlacklistingCompactionsTest.testBlacklistingWithSizeTieredCompactionStrategy(BlacklistingCompactionsTest.java:71) > {noformat} -- 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