Description
The buffer directory is checked for existence, then created if it doesn't exist. But the create can fail if the another process creates it in between. We can fix this by checking for existence again if the create fails. I've seen "Cannot create S3 buffer directory" occur, and this race is the most plausible explanation.