Pivotal Knowledge Base

Follow

Stat Archive File Name Containing a Hyphen Prevents Cleanup of Old Files

Environment

Pivotal GemFire 8 and above

Symptom

When the statistic archive file name contains a hyphen, the settings for archive-file-size-limit and archive-disk-space-limit do not work and the files do not get cleaned.

Example:

statistic-archive-file=/var/Logs/gemfire/test-gemfire-server-stats.gfs

Cause

This issue occurs because GemFire's internal StatArchiveHandler.getArchivePattern code does not account for the archive file name containing a hyphen when creating a search pattern and erroneously truncates the match at the first hyphen.

Resolution

The workaround for this issue is to remove the hyphen from the stats name in the `statistic-archive-file` setting.

Comments

Powered by Zendesk