You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2015/10/13 18:17:06 UTC

[jira] [Commented] (SLIDER-946) PyTest test_signal_handler failing

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

Steve Loughran commented on SLIDER-946:
---------------------------------------

{code}
======================================================================
ERROR: test_signal_handler (TestMain.TestMain)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Slider-develop/slider-agent/src/test/python/mock/mock.py", line 1199, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/jenkins-slave/workspace/Slider-develop/slider-agent/src/test/python/agent/TestMain.py", line 60, in test_signal_handler
    main.signal_handler("signum", "frame")
  File "/home/jenkins/jenkins-slave/workspace/Slider-develop/slider-agent/src/main/python/agent/main.py", line 59, in signal_handler
    tmpdir = controller.actionQueue.dockerManager.stop_container()
AttributeError: 'Controller' object has no attribute 'actionQueue'

{code}
Looking at the code, {{Controller}} only gets an {{actionQueue}} field in its {{run()}} method, so maybe there's a race condition —if the stop() operation kicks in too early, there's no field to stop.


> PyTest test_signal_handler  failing
> -----------------------------------
>
>                 Key: SLIDER-946
>                 URL: https://issues.apache.org/jira/browse/SLIDER-946
>             Project: Slider
>          Issue Type: Bug
>          Components: agent, test
>    Affects Versions: Slider 0.90
>            Reporter: Steve Loughran
>
> The test {{test_signal_handler}} is failing; message is {{ 'Controller' object has no attribute 'actionQueue'}}



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