Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release lock of docker compose file if possible #13111

Merged
merged 2 commits into from
Jul 31, 2019

Conversation

jsoriano
Copy link
Member

Write pid of process holding the lock in the lock file so it can be used
to check if the lock is stalled by a process that is not alive anymore.
This can happen if the test is interrupted while building and starting
an container with docker-compose and it can lead to obscure timeouts.

Related to #7957, #12909.

Write pid of process holding the lock in the lock file so it can be used
to check if the lock is stalled by a process that is not alive anymore.
This can happen if the test is interrupted while building and starting
an container with docker-compose and it can lead to obscure timeouts.
@jsoriano jsoriano requested a review from a team July 30, 2019 18:52
@jsoriano jsoriano requested a review from a team as a code owner July 30, 2019 18:52
@jsoriano jsoriano self-assigned this Jul 30, 2019
logp.Info("docker-compose.yml is locked, waiting")
infoShown = true
if acquireLock(c.LockFile()) {
if infoShown {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related to this PR, but I wonder if Debug would be better?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After we added the conditions to print these messages only once I think that it is ok at the info level, so it informs that it couldn't continue because the lock is held, and then it informs when it can take it.
But it could be fine at the debug level too, yes.

@jsoriano jsoriano merged commit bc09e7d into elastic:master Jul 31, 2019
@jsoriano jsoriano deleted the compose-wrapper-free-lock branch July 31, 2019 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants