dataquest-dev / dspace-import

Blackbox tests for dspace repository
Other
0 stars 2 forks source link

81-py/missing-most-recent-checksum #97

Closed Paurikova2 closed 11 months ago

Paurikova2 commented 1 year ago
Phases MP MM MB MR JM Total
ETA 0 0 0 0 0 0
Developing 0 0.2 0 0 0 0
Review 0 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem description

After import of bitstream there are missing checksum calculations for 169 bitstreams.

Analysys

Because the server may be out of memory when calculating checksums for large number of bitstreams, we only calculate these checksums for maximum of 500 bitstreams. However, since the total count of bitstreams was not divisible by 500 without a remainder, the checksums were not calculated for the most last imported bitstreams (169).

Solutions

Add calculation of checksums after the end of the loop where the bitstreams are imported. This fix will calculate the checksums for the last imported bitstreams.