Ticket #2808 (closed merge: fixed)
createDirectoryIfMissing should be atomic
| Reported by: | EricKow | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.10.2 |
| Component: | libraries/directory | Version: | 6.10.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
If I run createDirectoryIfMissing many times in parallel, it sometimes fails because (presumably) somewhere between the check if the directory exists, and between the actual creation, something else creates the directory.
Right now my workaround is to catch exceptions with isAlreadyExistsErrors
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

