LocalAdapter implementation with more options. #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Basically, the goal is to solve the following issue. It's kind of a moving target as the entire solar system must be aligned to reproduce this issue. Fortunately, the following scripts will help you to reproduce the issue quite easily (put all of them in the same directory).
The PR here basically implements to same logic as in the
mkdirfixretry.phpscript. An extra check regarding the FlySystem implementation to make sure the use ofumaskwill not interfer with further writes.rmdir.php
Simply removes folder
a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z. The directory must NOT BE THERE prior launchingmkdir.phpin order to reproduce the bug. So do not forget to runrmdir.phpfirst.mkdir.php
Use this script to reproduce the bug (make sure you ran
rmdir.phpbefore). You will see some failures at the very beginning of the script, when "everybody is forking like hell". After that, the situation gets better (press CTRL-C to interrupt).mkdirfixretry.php
Use this script to validate the approach. You should not see any failures, just retries. Make sure you ran
rmdir.phpbefore running the test.