Files count is a negative number
Description
Attachments
- 03 Dec 2009, 02:36 AM
relates to
Activity
Nuno Grilo December 3, 2009 at 3:41 AM
See https://sakaiproject.atlassian.net/browse/STAT-205#icft=STAT-205 for further progress on this issue.
David Horwitz December 3, 2009 at 3:34 AM
yes the config change fixes it
Nuno Grilo December 3, 2009 at 3:15 AM
I tested on a local test instance and it fixes the issue for me. Can you confirm?
Nuno Grilo December 3, 2009 at 3:12 AM
When this feature was implemented, I remember to get the same issue on one site. I believe this is caused when SiteStats is added to a site after resources have been added (causing negative numbers if files are then deleted).
By the time, I created a configuration property for sakai.properties (documented on the Confluence page) to count resources using CHS instead of relying on resource events:
countFilesUsingCHS@org.sakaiproject.sitestats.api.StatsManager= false (DEFAULT)
Enable/disable the counting of files using ContentHostingService (enabling is more inefficient but more precise if files were added before SiteStats were added to a site (if events are only aggregated for sites with SiteStats added)).
Can you check if adding this setting solves the issue?
If so, I think I should count using CHS by default....
In some reports we get a negative number for the "Files" count. No error seems visible in the logs