geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry Oglesby (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GEODE-1210) MemberMBeanBridge DiskDirectoryStats are not monitored for PartitionedRegions
Date Mon, 11 Apr 2016 21:59:25 GMT
Barry Oglesby created GEODE-1210:
------------------------------------

             Summary: MemberMBeanBridge DiskDirectoryStats are not monitored for PartitionedRegions
                 Key: GEODE-1210
                 URL: https://issues.apache.org/jira/browse/GEODE-1210
             Project: Geode
          Issue Type: Bug
          Components: jmx, management
            Reporter: Barry Oglesby


This means that {{TotalDiskUsage}} is 0 for {{PartitionedRegions}}.

The member's {{TotalDiskUsage}} JMX attribute comes from {{MemberMBeanBridge.getTotalDiskUsage}}
which does:
{noformat}
public long getTotalDiskUsage() {
	long diskSpaceUsage = regionMonitor.getDiskSpace();
	return diskSpaceUsage;
}
{noformat}
The {{regionMonitor}} gets the {{diskSpace}} by monitoring the {{DiskDirectoryStats}} of all
its persistent {{Regions}}.

For each region, {{MemberMBeanBridge.addRegion}} adds the {{DiskDirectoryStats}} of that region
to its {{regionMonitor}}.

If the region is a {{PartitionedRegion}}, then its {{DiskRegion}} is null since the {{DiskRegions}}
are on the {{BucketRegions}} so no {{DiskDirectoryStats}} are monitored.

This code in {{MemberMBeanBridge.addRegion}} falls through for {{PartitionedRegions}} since
{{dr}} is null:
{noformat}
DiskRegion dr = l.getDiskRegion();
if(dr != null){
	for(DirectoryHolder dh:dr.getDirectories()){
		addDirectoryStats(dh.getDiskDirectoryStats());
	}
}
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message