[ https://issues.apache.org/jira/browse/GEODE-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aaron Lindsey reassigned GEODE-1210: ------------------------------------ Assignee: Barry Oglesby Is this still an issue? If so, what is the expected behavior for a partitioned region DiskDirectoryStats? > 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 > Reporter: Barry Oglesby > Assignee: Barry Oglesby > Priority: Major > Labels: observability > > 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 (v8.3.2#803003)