Closed korydraughn closed 3 weeks ago
And this works fine without logical quotas enabled?
Yes.
The issue occurs here because that filesystem function filters out stale replicas. https://github.com/irods/irods_rule_engine_plugin_logical_quotas/blob/b285ba0ac1e5c422621b067ea63b88a5e9d47b3f/src/handler.cpp#L1199
See its implementation for specifics. https://github.com/irods/irods/blob/cd6b746802c6a5eaffb4f40a53cbe70d090c5f72/lib/filesystem/src/filesystem.cpp#L744-L763
The REP is designed to track the data size of data objects with at least one good replica. What should the REP do if there aren't any good replicas? Below are some ideas.
Option (a) seems like the best answer for the following reasons.
Tracking the number of data objects is not affected by this.
Also, (a) makes sense because logical quotas is already 'ignoring' any object without a good replica.
Agreed, we should have a 'recalculate' rule... to manually correct any 'drift'.
Related to #94.
Bug Report
Tested against potential 4.3.2 build of server and plugin.
Saw the following when the REP was enabled.
The log contained the following message.