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

Ekaterina Dimitrova commented on CASSANDRA-16644:
-------------------------------------------------

I fixed the CCM patch 
[here|https://github.com/ekaterinadimitrova2/ccm/commit/60515b59cc59dd4ac500321f6b6b3a8818ed7f88],
 I had a small mistake due to which the TAIL was always empty. Now it is fine, 
you can see where the method stopped reading from the log.

You can see in the latest 
[runs|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/808/workflows/737073ba-0e24-4a1f-9cdb-fffbef041a73/jobs/4568/tests#failed-test-0]
 I submitted with lower timeout, the message we look for is in the log but 
_watch_log_for_ method doesn't find the message; we just reached the timeout 
earlier before reaching the message in the log which we read line by line.

I am +1 on the raised timeout plus updated CCM debug message.

> Flaky TestTransientReplicationRing.test_move_backwards_and_cleanup
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-16644
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16644
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/dtest/python
>            Reporter: Berenguer Blasi
>            Assignee: Berenguer Blasi
>            Priority: Normal
>             Fix For: 4.0-rc
>
>
> Failure 
> [here|https://ci-cassandra.apache.org/job/Cassandra-trunk/472/testReport/junit/dtest-novnode.transient_replication_ring_test/TestTransientReplicationRing/test_move_backwards_and_cleanup/]
> {noformat}
> Error Message
> ccmlib.node.TimeoutError: 27 Apr 2021 00:01:00 [node4] after 90.11/90 seconds 
> Missing: ['Starting listening for CQL clients'] not found in system.log: 
> Tail: INFO  [main] 2021-04-26 23:59:22,590 YamlConfigura
> Stacktrace
> self = <transient_replication_ring_test.TestTransientReplicationRing object 
> at 0x7f66c51ebd90>
>     @flaky(max_runs=1)
>     @pytest.mark.no_vnodes
>     def test_move_backwards_and_cleanup(self):
>         """Test moving a node backwards without moving past a neighbor 
> token"""
>         move_token = '00005'
>         expected_after_move = [gen_expected(range(0, 6), range(31, 40)),
>                                gen_expected(range(0, 21, 2)),
>                                gen_expected(range(1, 6, 2), range(6, 31)),
>                                gen_expected(range(7, 20, 2), range(21, 40))]
>         expected_after_repair = [gen_expected(range(0, 6), range(31, 40)),
>                                  gen_expected(range(0, 21)),
>                                  gen_expected(range(6, 31)),
>                                  gen_expected(range(21, 40))]
> >       self.move_test(move_token, expected_after_move, expected_after_repair)
> transient_replication_ring_test.py:333: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> transient_replication_ring_test.py:235: in move_test
>     node4.start(wait_for_binary_proto=True)
> transient_replication_ring_test.py:50: in new_start
>     return old_start(*args, **kwargs)
> ../venv/src/ccm/ccmlib/node.py:901: in start
>     self.wait_for_binary_interface(from_mark=self.mark)
> ../venv/src/ccm/ccmlib/node.py:687: in wait_for_binary_interface
>     self.watch_log_for("Starting listening for CQL clients", **kwargs)
> ../venv/src/ccm/ccmlib/node.py:588: in watch_log_for
>     TimeoutError.raise_if_passed(start=start, timeout=timeout, node=self.name,
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> start = 1619481570.0236456, timeout = 90
> msg = "Missing: ['Starting listening for CQL clients'] not found in 
> system.log:\nTail: INFO  [main] 2021-04-26 23:59:22,590 YamlConfigura"
> node = 'node4'
>     @staticmethod
>     def raise_if_passed(start, timeout, msg, node=None):
>         if start + timeout < time.time():
> >           raise TimeoutError.create(start, timeout, msg, node)
> E           ccmlib.node.TimeoutError: 27 Apr 2021 00:01:00 [node4] after 
> 90.11/90 seconds Missing: ['Starting listening for CQL clients'] not found in 
> system.log:
> E           Tail: INFO  [main] 2021-04-26 23:59:22,590 YamlConfigura
> ../venv/src/ccm/ccmlib/node.py:56: TimeoutError
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to