Files count is a negative number

Description

In some reports we get a negative number for the "Files" count. No error seems visible in the logs

Attachments

1
  • 03 Dec 2009, 02:36 AM

Activity

Show:

Nuno Grilo December 3, 2009 at 3:41 AM

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....

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created December 3, 2009 at 2:36 AM
Updated December 22, 2014 at 10:51 AM
Resolved December 3, 2009 at 3:41 AM

Flag notifications