darcs

Issue 1003 transfer-mode does not deal well with missing files

Title transfer-mode does not deal well with missing files
Priority bug Status resolved
Milestone 2.1.x Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur
Assigned To
Topics Performance

Created on 2008-08-15.07:46:36 by kowey, last changed 2010-06-15.21:47:51 by admin.

Messages
msg5536 (view) Author: kowey Date: 2008-08-15.07:46:30
If darcs asks darcs transfer-mode for a missing file (say _darcs/format on an
old-fashioned repository), darcs transfer-mode will die and this sort of nasty
thing will happen:

Fri Aug 15 08:41:39 BST 2008: with ssh code.haskell.org: get format
Fri Aug 15 08:41:39 BST 2008: Error reading file remotely:
format: openBinaryFile: does not exist (No such file or directory)
Fri Aug 15 08:41:39 BST 2008: Failed to start ssh connection:
    Error reading file remotely:
format: openBinaryFile: does not exist (No such file or directory)
Fri Aug 15 08:41:39 BST 2008: Severing ssh failed connection to
code.haskell.org:empty/_darcs/format

Ugh! and then we go back to using scp :-(

The workaround is very simple: touch _darcs/format on the remote repository.
msg5537 (view) Author: kowey Date: 2008-08-15.07:50:48
Note: as this only affects old-fashioned repositories, a simple solution would
be to put this advice into the upgrade section of the manual
msg5979 (view) Author: kowey Date: 2008-09-10.22:28:56
Ok, I just thought of a solution on IRC:

darcs-transfer mode should have a list of files that it knows have the right not
to exist so that it can peacefully accept their non-existence

traps to watch out for are backwards compatibility with older darcs clients,
maybe by returning an empty file?
msg6190 (view) Author: droundy Date: 2008-10-01.18:50:06
This was fixed while email to bugs wasn't working.

David
msg6241 (view) Author: kowey Date: 2008-10-06.10:40:39
Just noting the resolution: it turns out I had misdiagnosed this bug.  It wasn't
darcs transfer-mode that was dying, but the client end that was prematurely
severing the connection.  This has since been fixed.
History
Date User Action Args
2008-08-15 07:46:36koweycreate
2008-08-15 07:46:46koweysetnosy: beschmi, kowey, darcs-devel, dagit
title: transfer-mode does deal well with missing files -> transfer-mode does not deal well with missing files
2008-08-15 07:50:49koweysetstatus: unread -> unknown
nosy: beschmi, kowey, darcs-devel, dagit
messages: + msg5537
2008-09-10 22:28:58koweysetnosy: beschmi, kowey, darcs-devel, dagit
messages: + msg5979
2008-10-01 18:50:08droundysetstatus: unknown -> resolved-in-unstable
nosy: + droundy, simon, thorkilnaur
messages: + msg6190
2008-10-06 10:38:35koweylinkissue1126 superseder
2008-10-06 10:40:41koweysetnosy: + dmitry.kurochkin, - darcs-devel
messages: + msg6241
2009-04-22 03:32:17twbsetstatus: resolved-in-unstable -> resolved
nosy: droundy, beschmi, kowey, dagit, simon, thorkilnaur, dmitry.kurochkin
2009-08-06 18:01:02adminsetnosy: + markstos, jast, Serware, darcs-devel, zooko, mornfall, tommy, - droundy
2009-08-06 21:11:09adminsetnosy: - beschmi
2009-08-10 12:54:16adminsetnosy: - tommy, markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-10 23:42:34adminsetnosy: - dagit
2009-08-25 17:29:57adminsetnosy: + darcs-devel, - simon
2009-08-27 14:18:41adminsetnosy: kowey, darcs-devel, thorkilnaur, dmitry.kurochkin
2010-06-15 21:47:50adminsetmilestone: 2.1.x
2010-06-15 21:47:51adminsettopic: - Target-2.1