Skip to content

Huge/wrong value on youngest age of retrieve queue (cta-admin sq)

Sometimes the retrieve queue youngest request age contains a wrong value:

[root@tpsrv327 ~]# cta-admin sq
            type   tapepool vo library    vid files queued data queued oldest            youngest priority min age read max drives write max drives cur. mounts cur. files cur. data MB/s tapes capacity files on tapes data on tapes full tapes writable tapes 
        Retrieve validation IT  IBM1L9 L86417            1      333.5M      0 9223372038511283947       10     300               2                2           1        308     79.4G    0          18.0T         106078         21.9T          1              0 

The value 9223372038511283947 is 8000000062BC4EEB. 62BC4EEB (or 1656508139) corresponds to the Epoch date Wednesday, 29 June 2022 13:08:59, so somewhere an extra bit is being added in a wrong type conversion.

The purpose of this issue is to find and fix this bug.

For more details check the related ops issue: https://gitlab.cern.ch/cta/operations/-/issues/796