I think this code would be cleaner if you just had it work off the RegionAttributes that you can get from the passed in Region. That way you would need need instanceof checks and casting to internal classes (PartitonedRegion and LocalRegion). You can just ask the attributes if the DataPolicy is empty (!withStorage()). If not then check if the data policy is partitioned (withPartitioning()). If so call getParititionAttributes().getLocalMaxMemory() and see if it is zero.
[ Full content available at: https://github.com/apache/geode/pull/3309 ] This message was relayed via gitbox.apache.org for [email protected]
