irods / irods_rule_engine_plugin_logical_quotas

BSD 3-Clause "New" or "Revised" License
1 stars 9 forks source link

Total number of bytes quota not updated following the removal of data objects with single quote in the name #113

Open korydraughn opened 3 weeks ago

korydraughn commented 3 weeks ago

Bug Report

Discovered during testing of PR #110.

Notice after the removal of the data object, irods::logical_quotas::total_size_in_bytes still shows 80 bytes. It should be 0 after the removal.

$ imeta ls -C .
AVUs defined for collection /tempZone/home/kory:
attribute: irods::logical_quotas::total_size_in_bytes
value: 0
units: 
----
attribute: irods::logical_quotas::total_number_of_data_objects
value: 0
units:
$ iput test.re "just testin'"
$ imeta ls -C .
AVUs defined for collection /tempZone/home/kory:
attribute: irods::logical_quotas::total_size_in_bytes
value: 80
units: 
----
attribute: irods::logical_quotas::total_number_of_data_objects
value: 1
units:
$ irm -f "just testin'"
$ imeta ls -C .
AVUs defined for collection /tempZone/home/kory:
attribute: irods::logical_quotas::total_size_in_bytes
value: 80
units: 
----
attribute: irods::logical_quotas::total_number_of_data_objects
value: 0
units:

_Originally discussed here: https://github.com/irods/irods_rule_engine_plugin_logical_quotas/issues/94#issuecomment-2077124781_