Udo Kohlmeyer created GEODE-10067: ------------------------------------- Summary: WANCopyRegionFunctionDelegate needs to be optimized to handle large regions Key: GEODE-10067 URL: https://issues.apache.org/jira/browse/GEODE-10067 Project: Geode Issue Type: Improvement Components: wan Affects Versions: 1.15.0, 1.16.0 Reporter: Udo Kohlmeyer
The current WanCopyRegionFunctionDelegate may cause significant memory issues in with really large regions. The [getEntries|https://github.com/apache/geode/blob/develop/geode-wan/src/main/java/org/apache/geode/management/internal/cli/functions/WanCopyRegionFunctionDelegate.java#L102] method returns both primary and redundant Region Entries for local server. The invocation of getEntries from the PartitionedRegionDataStore will cause all entries to be deserialized https://github.com/apache/geode/blob/develop/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java#L2501-L2515 The [createBatch|https://github.com/apache/geode/blob/develop/geode-wan/src/main/java/org/apache/geode/management/internal/cli/functions/WanCopyRegionFunctionDelegate.java#L107-L108] method creates a List<GatewayQueueEvent> equally that of the local Region size. Essentially ... In a system with VERY large regions this might cause significant memory issues -- This message was sent by Atlassian Jira (v8.20.1#820001)