cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Motta (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-13056) dtest failure in materialized_views_test.TestMaterializedViews.base_replica_repair_test
Date Mon, 19 Dec 2016 19:13:58 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-13056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paulo Motta updated CASSANDRA-13056:
------------------------------------
    Assignee: Paulo Motta
    Reviewer: Philip Thompson
      Status: Patch Available  (was: Open)

It seems I missed this failure when reviewing CASSANDRA-12905. That ticket introduced a new
test {{base_replica_repair_with_contention_test}} which is a special case of {{base_replica_repair_test}}
that needs to update the write timeout and add special JVM options which are not required
by the original {{base_replica_repair_test}}. 

Updating the node's configuration on {{base_replica_repair_with_contention_test}} makes it
refresh and remove itself from the seed list, what requires the use of the {{cassandra.allow_unsafe_replace=true}}
and {{-Dcassandra.replace_address}}. These options are not required in the original {{base_replica_repair_test}}
because the node remains a seed because the configuration is not updated so it will do an
unsafe replace with new tokens.

The fix is simple and basically restores the original behavior of {{base_replica_repair_test}}
by only setting flags and options when {{fail_mv_lock=True}}. Created a [pull request|https://github.com/riptano/cassandra-dtest/pull/1412]
and submitted CI runs:

||3.0||3.11||trunk||dtest||
|N/A|N/A|N/A|[branch|https://github.com/riptano/cassandra-dtest/compare/master...pauloricardomg:13056]|
|[dtest|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-3.0-13056-dtest/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-3.11-13056-dtest/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-trunk-13056-dtest/lastCompletedBuild/testReport/]|

> dtest failure in materialized_views_test.TestMaterializedViews.base_replica_repair_test
> ---------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-13056
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13056
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Testing
>            Reporter: Sean McCarthy
>            Assignee: Paulo Motta
>            Priority: Blocker
>              Labels: dtest, test-failure
>             Fix For: 3.10
>
>         Attachments: node1.log, node1_debug.log, node1_gc.log, node2.log, node2_debug.log,
node2_gc.log, node3.log, node3_debug.log, node3_gc.log
>
>
> example failure:
> http://cassci.datastax.com/job/cassandra-3.X_dtest/61/testReport/materialized_views_test/TestMaterializedViews/base_replica_repair_test_2/
> {code}
> Standard Output
> Unexpected error in node1 log, error: 
> ERROR [main] 2016-12-15 23:40:43,219 CassandraDaemon.java:752 - Exception encountered
during startup
> java.lang.RuntimeException: Cannot replace_address /127.0.0.1 because it doesn't exist
in gossip
> 	at org.apache.cassandra.service.StorageService.prepareForReplacement(StorageService.java:514)
~[main/:na]
> 	at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:781)
~[main/:na]
> 	at org.apache.cassandra.service.StorageService.initServer(StorageService.java:668) ~[main/:na]
> 	at org.apache.cassandra.service.StorageService.initServer(StorageService.java:614) ~[main/:na]
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:394) [main/:na]
> 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:601) [main/:na]
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:735) [main/:na]
> {code}{code}
> Stacktrace
>   File "/usr/lib/python2.7/unittest/case.py", line 358, in run
>     self.tearDown()
>   File "/home/automaton/cassandra-dtest/dtest.py", line 583, in tearDown
>     raise AssertionError('Unexpected error in log, see stdout')
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message