Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to import odim file when there is an empty file in dataset #315

Open
dcesari opened this issue Aug 25, 2023 · 0 comments
Open

Failure to import odim file when there is an empty file in dataset #315

dcesari opened this issue Aug 25, 2023 · 0 comments
Assignees

Comments

@dcesari
Copy link
Member

dcesari commented Aug 25, 2023

After a system crash, an odim segment folder ended containing a -probably unindexed- empty file at the end of the sequence, such as in this simulated example:

[dcesari@Cesari-L-SMR scan_odim]$ ls -l radar_vol/2023/08-23.odimh5
totale 244
-rw-r--r-- 1 dcesari dcesari 247817 25 ago 11.49 000000.odimh5
-rw-r--r-- 1 dcesari dcesari      0 25 ago 12.11 000001.odimh5

This situation prevented further import of data for the same segment since all the data were dispatched to error with the message cannot open file /path/to/radar_vol/2023/08-23.odimh5/000001.odimh5: File exists.

Could we handle automatically such situations in a safe way?

Actually I cannot even fix the situation with an arki-check -f, it recognizes the spurious file, but it crashes when trying to open it.

The situation can be reproduced by touch-ing the following file at the end of an odim sequence, but I can provide a test case if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants