Add NB_MASTER_FILES, MASTER_DATA_IN_BYTES, DIRTY columns to TAPE table
This issue is related to #729 (closed)
Problem to solve
Operators need to know the amount of master files and bytes a tape contains. It is useful as well for calculating the daily CTA statistics (Number of files and bytes stored in CTA each day).
master files = the files that are not superseded.
Intended users
Operators + Daily statistics tool
Proposal
-
I will add the two columns NB_MASTER_FILES and MASTER_DATA_IN_BYTES into the TAPE table.
-
cta-admin --json tape ls
will display these informations. -
I will add the DIRTY column, a boolean, that will be set to true if the tape files have been modified (reclaim, delete ArchiveFile, files written to tape).
cta-admin --json tape ls
will also display this bit so that the operators know that they can not rely on NB_MASTER_FILES and MASTER_DATA_IN_BYTES. -
The CTA daily statistics tool, while running every night, will update the NB_MASTER_FILES and MASTER_DATA_IN_BYTES columns and set the DIRTY flag to false