comment
authorJoey Hess <joeyh@joeyh.name>
Thu, 21 Nov 2024 19:21:08 +0000 (15:21 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 21 Nov 2024 19:21:08 +0000 (15:21 -0400)
doc/todo/p2phttp_serve_multiple_repositories/comment_2_4dbd2fc7fbd0234ac84dced8dd3c5e1b._comment [new file with mode: 0644]

diff --git a/doc/todo/p2phttp_serve_multiple_repositories/comment_2_4dbd2fc7fbd0234ac84dced8dd3c5e1b._comment b/doc/todo/p2phttp_serve_multiple_repositories/comment_2_4dbd2fc7fbd0234ac84dced8dd3c5e1b._comment
new file mode 100644 (file)
index 0000000..d2f13ce
--- /dev/null
@@ -0,0 +1,22 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2024-11-21T19:16:20Z"
+ content="""
+This is now implemented, use p2phttp --directory to serve all repositories
+in that directory.
+
+There is one known problem, which I'm leaving this todo open for. When a
+repository is moved out of the directory, the server should stop serving
+it. And it does, eg both git-annex get and git-annex drop will fail, since
+the server is not able to access the directory any longer. But, a second
+git-annex drop actually hangs at the "locking origin" stage. 
+(When run with -J2.. with more jobs it takes more than 2) 
+
+It seems that the server is leaking annex workers in this case. Probably
+it fails to recover from a crash.
+
+Luckily, it only affects serving the uuid of the removed repository, other
+repositories in the directory will continue to be served without problems
+when this happens.
+"""]]