Open cubranic opened 4 years ago
This happens all the time with our UBC-to-cedar copying, too. At least with alpenhorn 1, the solution is to run an alpenhorn daemon on the machine at UBC with the TDs (jingle
in our case). The only thing that particular daemon ever does is wait around for the cedar
daemon to mark TD files as has_file='M'
and then runs a verify on them to either mark them X
or Y
.
Other that that (i.e. the vast, vast majority of the time), it just spins there doing nothing.
That said, a manual verify
should also be checking has_file="M"
entries.
Really, verify should check all file copies that don't have has_file='N'
, i.e. all supposedly extant, files whether they're ok (Y
), uncertain (M
) or known to be bad already (X
), and then reporting differences from the database.
Yeah, I agree the condition should probably has_file!="N"
for verify
Then it's complementary to scan
, which is meant to find files which aren't expected to be on that node (i.e. it only updates absent entries and entries with has_file=N
).
I think I ran into a loophole where file copies are marked "M" and there is no way to restore them short of hand-editing the database.
This is what happened:
Commands I tried:
verify
: only checks files which are "has_file=Y" to mark them "N" or "X" if they failscan
: detects the file copy is already registered and does not make any checks or changes to the status