archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
16 stars 1 forks source link

Problem: Archival Storage File Counts are one too high #1375

Open ross-spencer opened 6 years ago

ross-spencer commented 6 years ago

It looks like the count (Elasticsearch?) of files in archival storage is one too high. Take this from am17xqa where I have transferred just two files, yet the result shows 3:

image

http://am17x.qa.archivematica.org/tasks/5fbc31c3-65be-4af1-ae78-f10aa58a32f6/

ross-spencer commented 5 years ago

Just for reference, this is still the same in 1.9-rc: image

ross-spencer commented 4 years ago

Working on CR today, I noticed this is being caused by the fact we index the directory_tree.txt if it exists and that file is included in the count. Generate transfer structure report: Yes.

Turning that off for the same transfer we can see the following:

image

For the one transfer we can see the file in the index:

image

I know there have been discussions recently about what should and shouldn't be indexed. And then there's a display question too which is separate from the index depending on what users want to see a report on.

sromkey commented 4 years ago

Good catch @ross-spencer !!!