sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radu Cotescu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SLING-7083) The StopMojo should block until the process is finished
Date Thu, 24 Aug 2017 10:49:02 GMT
Radu Cotescu created SLING-7083:
-----------------------------------

             Summary: The StopMojo should block until the process is finished
                 Key: SLING-7083
                 URL: https://issues.apache.org/jira/browse/SLING-7083
             Project: Sling
          Issue Type: Bug
          Components: Tooling
    Affects Versions: Slingstart Maven Plugin 1.1.0
            Reporter: Radu Cotescu
            Assignee: Radu Cotescu
             Fix For: Slingstart Maven Plugin 1.7.8


Currently the {{StopMojo}} blocks with a timeout only if the instance provides a control port
and the stop command is sent to this socket.

However, if the mojo has to terminate the instance process by itself then it just sends the
terminate command without waiting for the process to actually finish. Without blocking, the
{{verify}} Maven lifecycle phase will start, although processing of tasks started in the {{post-integration-test}}
phase might not have finished.

One of the potential side-effects of this bug is the inability to properly collect code coverage
results with the {{jacoco-maven-plugin}}, because the plugin will start reading the {{*.exec}}
file before its agent (usually attached to a Sling instance started by the {{StartMojo}})
had a chance to flush the coverage contents.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message