Skip to content

[Backport 8.x] Tolerate concurrent creation of directories#507

Merged
OpenVoxProjectBot merged 1 commit into
8.xfrom
backport-506-to-8.x
Jul 1, 2026
Merged

[Backport 8.x] Tolerate concurrent creation of directories#507
OpenVoxProjectBot merged 1 commit into
8.xfrom
backport-506-to-8.x

Conversation

@OpenVoxProjectBot

Copy link
Copy Markdown
Contributor

Description

Backport of #506 to 8.x.

When two processes both decide a directory needs to be created (e.g.
multiple JRuby instances in openvox-server independently bootstrapping
Puppet settings against the same confdir), Dir.mkdir raises Errno::EEXIST
for whichever one loses the race, surfacing as a resource failure even
though the desired state was actually achieved. Treat EEXIST as success
when the path is now a directory, while still raising for a genuine
conflict (e.g. a file or symlink already at that path).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
(cherry picked from commit b561c3c)
@Sharpie Sharpie added the bug Something isn't working label Jul 1, 2026
@OpenVoxProjectBot OpenVoxProjectBot merged commit af1cbe7 into 8.x Jul 1, 2026
20 checks passed
@OpenVoxProjectBot OpenVoxProjectBot deleted the backport-506-to-8.x branch July 1, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants