summaryrefslogtreecommitdiff
path: root/doc/bugs/assistant_does_not_warn_on_files_it_failed_to_add.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-04-23 18:23:04 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-04-23 18:23:04 -0400
commit697b510c9343a1fa5013bb307a5ce5e38c46e46e (patch)
tree1dae96839055b2173e1ae96dd8afa966c5087b4f /doc/bugs/assistant_does_not_warn_on_files_it_failed_to_add.mdwn
parentb46fbec1baa65f0328e82f4817a89dd5f8a46bed (diff)
assistant: when an add fails, requeue it for later
See analysis in bug report for one way this could happen.
Diffstat (limited to 'doc/bugs/assistant_does_not_warn_on_files_it_failed_to_add.mdwn')
-rw-r--r--doc/bugs/assistant_does_not_warn_on_files_it_failed_to_add.mdwn22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/bugs/assistant_does_not_warn_on_files_it_failed_to_add.mdwn b/doc/bugs/assistant_does_not_warn_on_files_it_failed_to_add.mdwn
index 230841e9f..6539dc9e8 100644
--- a/doc/bugs/assistant_does_not_warn_on_files_it_failed_to_add.mdwn
+++ b/doc/bugs/assistant_does_not_warn_on_files_it_failed_to_add.mdwn
@@ -22,3 +22,25 @@ OS: Arch Linux
Please provide any additional information below.
The assistant in this case is being used as nothing more than a way for me to see which files have been added (--verbose, --foreground and --debug with 'watch' outputs nothing..). No remotes or anything like that.
+
+> I have made the assistant re-queue any file that it fails to add,
+> so it will retry it later. Typically within a few seconds. [[done]]
+>
+> I have only been able to think of one scenario in which this could
+> happen. It's pretty unusual:
+>
+> * Something writes to a file, and closes it.
+> * Assistant sees file has no writers, and locks it down in preparation
+> to add it.
+> * Something then re-opens the file to write to it some more.
+> Note that it would seem to need to bypass permissions that prevent
+> the file from being written to in order to do this. It makes a change
+> to the file.
+> * Assistant is checksumming file, reaches end, and detects it has been
+> tampered with and gives up.
+>
+> I would still like more information about circumstances that
+> cause this to happen, because while a possible scenario, the
+> above is too weird to believe anyone could run into it.
+>
+> --[[Joey]]