Skip to content

Conversation

@jsoriano
Copy link
Member

Execution of fast docker compose commands are getting stuck sometimes. One possible theory is that we are closing the pseudo-tty before the copy has finished, and it hangs there.

Close the pseudo-TTY after waiting for the finalization of the goroutine, so we avoid problems caused by closing it while it is being read.

Thanks @mrodm for reporting!

@jsoriano jsoriano requested a review from mrodm June 13, 2024 15:47
@jsoriano jsoriano self-assigned this Jun 13, 2024
Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

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

Perfect, thanks!!
Let's try running several times the CI 🤞

@jsoriano
Copy link
Member Author

/test

1 similar comment
@jsoriano
Copy link
Member Author

/test

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @jsoriano

@jsoriano
Copy link
Member Author

Three builds green, I am merging this.

@jsoriano jsoriano merged commit ebb1446 into elastic:main Jun 17, 2024
@jsoriano jsoriano deleted the race-condition-ptty-close branch June 17, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants