-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework inflight change tracking and also apply it to overwrites in ad…
…dition to deletes Otherwise a multipart upload could race with listings. An approximate test case is: 1. Mount the FS with `--stat-cache-ttl=1s --debug_s3`. 2. Create a 1 GB file: `dd if=/dev/urandom of=mnt/directory/1GBFILE bs=1M count=1000`. 3. Start `while true; do ls mnt/directory > /dev/null; done` in a parallel shell. where mnt/directory is the directory that contains the 1 GB file from step 2 4. Run `for i in {1..100}; do dd if=/dev/urandom of=mnt/directory/1GBFILE bs=1 count=1 conv=notrunc; done` several times. Another way is to just run that `dd` command a lot of times with random delays between runs. 5. Look for "AbortMultipartUpload" in the log. An aborted upload means that you hit the bug and one of the modifications is lost.
- Loading branch information
Showing
3 changed files
with
66 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters