Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Dec 10, 2023

The change #36131 when switching to docker-compose based running of scripts introduced a subtle race condition when several docker-compose runs were running in paralell and used the same project_name. This happened for example in case of constraints generation - when running two Python constraints generation caused docker network to be created two times.

This PR fixes the problem for the cases where such run are run in parallel - by giving each of the parallel commands unique project_name.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk
Copy link
Member Author

potiuk commented Dec 10, 2023

The change apache#36131 when switching to docker-compose based running of
scripts introduced a subtle race condition when several docker-compose
runs were running in paralell and used the same project_name. This
happened for example in case of constraints generation - when
running two Python constraints generation caused docker network to
be created two times.

This PR fixes the problem for the cases where such run are run in
parallel - by giving each of the parallel commands unique project_name.
@potiuk potiuk force-pushed the avoid-race-condition-when-generating-constraints branch from 4cb4d0c to 1f58b1d Compare December 10, 2023 17:40
@potiuk potiuk merged commit 643b234 into apache:main Dec 10, 2023
@potiuk potiuk deleted the avoid-race-condition-when-generating-constraints branch December 10, 2023 18:45
potiuk added a commit that referenced this pull request Dec 15, 2023
…#36155)

The change #36131 when switching to docker-compose based running of
scripts introduced a subtle race condition when several docker-compose
runs were running in paralell and used the same project_name. This
happened for example in case of constraints generation - when
running two Python constraints generation caused docker network to
be created two times.

This PR fixes the problem for the cases where such run are run in
parallel - by giving each of the parallel commands unique project_name.

(cherry picked from commit 643b234)
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants