git-annex/doc/bugs/checkpresentkey_wrongly_reports_key_absense.mdwn
Joey Hess c4f2c56f5e
checkpresentkey: fix behavior to match documentation
checkpresentkey: When no remote is specified, try all remotes, not only
ones that the location log says contain the key. This is what the
documentation has always said it did.

Still try the logged remotes first, because they are far more likely to
have the key.
2020-06-16 13:54:26 -04:00

86 lines
6.7 KiB
Markdown

(master_env_v082_py36) 00:55 [ilya-work] $ git annex checkpresentkey MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam 19c05b2b-b155-4ac3-a9e7-fa7c8d67e430
(master_env_v082_py36) 00:55 [ilya-work] $ echo $?
0
(master_env_v082_py36) 00:55 [ilya-work] $ git annex checkpresentkey MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam
(master_env_v082_py36) 00:55 [ilya-work] $ echo $?
1
(master_env_v082_py36) 00:55 [ilya-work] $ git annex whereis --key MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam
whereis MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam (1 copy)
19c05b2b-b155-4ac3-a9e7-fa7c8d67e430 -- [dnanexus]
dnanexus: dx://file-FBf5qFj06KBfVygf2pz3pXPQ/1375.cleaned.bam
ok
(master_env_v082_py36) 00:57 [ilya-work] $ git annex readpresentkey MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam 19c05b2b-b155-4ac3-a9e7-fa7c8d67e430
(master_env_v082_py36) 00:57 [ilya-work] $ echo $?
0
(master_env_v082_py36) 00:57 [ilya-work] $ git annex --verbose --debug checkpresentkey MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam 19c05b2b-b155-4ac3-a9e7-fa7c8d67e430
[2019-02-14 00:58:32.575463] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","show-ref","git-annex"]
[2019-02-14 00:58:32.583744] process done ExitSuccess
[2019-02-14 00:58:32.583809] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","show-ref","--hash","refs/heads/git-annex"]
[2019-02-14 00:58:32.592023] process done ExitSuccess
[2019-02-14 00:58:32.592656] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","log","refs/heads/git-annex..5dde7d61a8183a50acf98e0847650df20547a0c5","--pretty=%H","-n1"]
[2019-02-14 00:58:32.608022] process done ExitSuccess
[2019-02-14 00:58:32.608086] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","log","refs/heads/git-annex..aee29af11409cba48bb52ef5893249f5c964180c","--pretty=%H","-n1"]
[2019-02-14 00:58:32.830193] process done ExitSuccess
[2019-02-14 00:58:32.830306] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","log","refs/heads/git-annex..818a062162bbac26adfd3d30f5ab076d3d0b77e0","--pretty=%H","-n1"]
[2019-02-14 00:58:32.844831] process done ExitSuccess
[2019-02-14 00:58:32.84522] chat: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","cat-file","--batch"]
[2019-02-14 00:58:32.845628] chat: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","cat-file","--batch-check=%(objectname) %(objecttype) %(objectsize)"]
[2019-02-14 00:58:32.860656] read: git ["config","--null","--list"]
[2019-02-14 00:58:32.874021] process done ExitSuccess
[2019-02-14 00:58:32.881706] chat: /data/ilya-work/viral-ngs/is-1808252024-add-benchmarks/tools/git-annex-remotes/git-annex-remote-dnanexus []
[2019-02-14 00:58:32.924132] git-annex-remote-dnanexus[1] --> VERSION 1
[2019-02-14 00:58:32.924215] git-annex-remote-dnanexus[1] <-- EXTENSIONS INFO
[2019-02-14 00:58:32.924288] git-annex-remote-dnanexus[1] --> EXTENSIONS
[2019-02-14 00:58:32.924322] git-annex-remote-dnanexus[1] <-- PREPARE
[2019-02-14 00:58:32.924372] git-annex-remote-dnanexus[1] --> PREPARE-SUCCESS
[2019-02-14 00:58:32.9244] git-annex-remote-dnanexus[1] <-- CHECKPRESENT MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam
[2019-02-14 00:58:32.924461] git-annex-remote-dnanexus[1] --> DEBUG CHECKING PRESENCE OF KEY MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam
[2019-02-14 00:58:32.924491] CHECKING PRESENCE OF KEY MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam
[2019-02-14 00:58:32.924512] git-annex-remote-dnanexus[1] --> GETURLS MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam dx://
[2019-02-14 00:58:32.925707] git-annex-remote-dnanexus[1] <-- VALUE dx://file-FBf5qFj06KBfVygf2pz3pXPQ/1375.cleaned.bam
[2019-02-14 00:58:32.925755] git-annex-remote-dnanexus[1] <-- VALUE
[2019-02-14 00:58:33.399433] git-annex-remote-dnanexus[1] --> CHECKPRESENT-SUCCESS MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995.bam
(master_env_v082_py36) 00:58 [ilya-work] $
-(master_env_v082_py36) 00:58 [ilya-work] $ git annex --verbose --debug checkpresentkey MD5E-s622177--a8c1aebb39d2093b08ce81a13661a995\
.bam
[2019-02-14 01:00:22.921333] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","show-ref","git-annex"]
[2019-02-14 01:00:22.929444] process done ExitSuccess
[2019-02-14 01:00:22.929505] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","show-ref","--hash","refs/heads/git-ann\
ex"]
[2019-02-14 01:00:22.937493] process done ExitSuccess
[2019-02-14 01:00:22.938154] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","log","refs/heads/git-annex..5dde7d61a8\
183a50acf98e0847650df20547a0c5","--pretty=%H","-n1"]
[2019-02-14 01:00:22.952747] process done ExitSuccess
[2019-02-14 01:00:22.952809] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","log","refs/heads/git-annex..aee29af114\
09cba48bb52ef5893249f5c964180c","--pretty=%H","-n1"]
[2019-02-14 01:00:23.174093] process done ExitSuccess
[2019-02-14 01:00:23.174196] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","log","refs/heads/git-annex..818a062162\
bbac26adfd3d30f5ab076d3d0b77e0","--pretty=%H","-n1"]
[2019-02-14 01:00:23.189329] process done ExitSuccess
[2019-02-14 01:00:23.189644] chat: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","cat-file","--batch"]
[2019-02-14 01:00:23.189965] chat: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","cat-file","--batch-check=%(objectname)\
%(objecttype) %(objectsize)"]
[2019-02-14 01:00:23.204081] read: git ["config","--null","--list"]
[2019-02-14 01:00:23.21793] process done ExitSuccess
(master_env_v082_py36) 01:00 [ilya-work] $ git annex version
git-annex version: 7.20181211-g1cdb7a2
build flags: Assistant Webapp Pairing S3(multipartupload)(storageclasses) WebDAV Inotify TorrentParser MagicMime Feeds Testsuite
dependency versions: aws-0.20 bloomfilter-2.0.1.0 cryptonite-0.25 DAV-1.3.2 feed-1.0.0.0 ghc-8.2.2 http-client-0.5.13.1 persistent-sql\
ite-2.8.1.2 torrent-10000.1.1 uuid-1.3.13 yesod-1.6.0
key/value backends: SHA256E SHA256 SHA512E SHA512 SHA224E SHA224 SHA384E SHA384 SHA3_256E SHA3_256 SHA3_512E SHA3_512 SHA3_224E SHA3_2\
24 SHA3_384E SHA3_384 SKEIN256E SKEIN256 SKEIN512E SKEIN512 BLAKE2B256E BLAKE2B256 BLAKE2B512E BLAKE2B512 BLAKE2B160E BLAKE2B160 BLAKE\
2B224E BLAKE2B224 BLAKE2B384E BLAKE2B384 BLAKE2S256E BLAKE2S256 BLAKE2S160E BLAKE2S160 BLAKE2S224E BLAKE2S224 BLAKE2SP256E BLAKE2SP256\
BLAKE2SP224E BLAKE2SP224 SHA1E SHA1 MD5E MD5 WORM URL
remote types: git gcrypt p2p S3 bup directory rsync web bittorrent webdav adb tahoe glacier ddar hook external
operating system: linux x86_64
supported repository versions: 5 7
upgrade supported from repository versions: 0 1 2 3 4 5 6
local repository version: 5
Linux ip-172-31-85-193 4.14.97-74.72.amzn1.x86_64 #1 SMP Tue Feb 5 20:59:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
> [[fixed|done]] --[[Joey]]