Closed jdavid closed 4 years ago
@norberp
Approximately 1.5% file uploads are truncated.
Analysing the ids of the files uploaded, there're no gaps. This shows that the system is (apparently) robust even when the network is cut for a long time, as it has happened in the past. Sometimes the counter goes back to zero and starts again, this may be when the CR6 reboots.
@norberp if you have observed gaps in the data available in the database it may be worth to give a closer look.
TODO When a file is truncated in the header, before the content starts, automatically rename it to avoid the script to try again and again (and to flood me with emails).
done
This is a description of the observed behaviour.
CR6 files are uploaded every 30 minutes. Sometimes the uploaded file is truncated. The good news is that when a file is truncated, CR6 will upload again the same file. This is what I've observed, for instance:
Above, there have been 2 truncated uploads and then a complete upload. In the filename the last number identifies the uploaded file, we see here the number
3321
three times.A truncated file may be in the following states:
.empty
suffix.truncated
suffix.For the last two, some good lines have been imported. When the file is uploaded again the script will handle the same lines again. But it detects they've already been imported, so they don't produce duplicates in the database, but I get an email.