You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Paulo Motta (JIRA)" <ji...@apache.org> on 2018/01/21 23:44:00 UTC

[jira] [Commented] (CASSANDRA-14159) Fix flaky test_drop_with_stopped_build

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

Paulo Motta commented on CASSANDRA-14159:
-----------------------------------------

The tests {{drop_while_building}} and {{drop_with_stopped_build}} added by CASSANDRA-12245 slows down the view build to ensure it's dropped/stopped while building. After the view is re-created, the new view build may take longer than the maximum allowed time of 50 seconds due to the byteman slowdown, causing the test to fail.

The fix reduces the number of base table rows from 10k to 5k to allow the second view build to complete on time and also waits for the view to start building before stopping or dropping it to make it more deterministic.

Simple cassandra-dtest patch [here|https://github.com/pauloricardomg/cassandra-dtest/commit/79822e7aa176c4611e0ba87d746e1f29a2ee3c1e].

CI looks good, would you mind taking a look [~adelapena] ?

> Fix flaky test_drop_with_stopped_build
> --------------------------------------
>
>                 Key: CASSANDRA-14159
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14159
>             Project: Cassandra
>          Issue Type: Test
>            Reporter: Paulo Motta
>            Assignee: Paulo Motta
>            Priority: Major
>
> Test is failing with
> {noformat}
>   File "/usr/lib/python2.7/unittest/case.py", line 329, in run
>     testMethod()
>   File "/home/automaton/cassandra-dtest/tools/decorators.py", line 48, in wrapped
>     f(obj)
>   File "/home/automaton/cassandra-dtest/materialized_views_test.py", line 1129, in test_drop_with_stopped_build
>     self._wait_for_view('ks', 't_by_v')
>   File "/home/automaton/cassandra-dtest/materialized_views_test.py", line 130, in _wait_for_view
> {noformat}
> test_drop_while_building is also failing with a similar stack trace:
> {noformat}
>   File "/usr/lib/python2.7/unittest/case.py", line 329, in run
>     testMethod()
>   File "/home/automaton/cassandra-dtest/tools/decorators.py", line 48, in wrapped
>     f(obj)
>   File "/home/automaton/cassandra-dtest/materialized_views_test.py", line 1073, in test_drop_while_building
>     self._wait_for_view('ks', 't_by_v')
>   File "/home/automaton/cassandra-dtest/materialized_views_test.py", line 130, in _wait_for_view
>     raise RuntimeError("View {}.{} build not finished after 50 seconds.".format(ks, view))
> {noformat}



--
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