Skip to content

CORBA.FAILURE getting a component after reloading its container #54

@marco-buttu

Description

@marco-buttu

I think there is an issue in Python (I do not know in C++ or Java) after reloading the container. I am using the latest ACS release (2017-02). Here is a test that fails (the complete file is in attachment), because the last but one line raises a CORBA.FAILURE:

    def test_get_component_after_reloading_container(self):
        component = self.client.getComponent(self.component_name)
        foo = component.find_characteristic('foo')
        # Stop the container
        self.container.stop()
        self.container.wait_until_not_running()
        # Restart the container
        self.container.start()
        self.container.wait_until_running()
        # Get again the component, but it is the same if you do not do it
        component = self.client.getComponent(self.component_name)
        foo = component.find_characteristic('foo')  # BOOM!
        self.assertEqual(foo, [])

Basically, if I get the component, stop the container, re-start the container, and get again the component, then at the first use of the component (calling a method, for instance) I get a CORBA.FAILURE. After that everything works fine (if you catch the exception...).

test_get_component.py.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions