Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-10067

WANCopyRegionFunctionDelegate needs to be optimized to handle large regions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.15.0
    • 1.15.0
    • wan

    Description

      The current WanCopyRegionFunctionDelegate may cause significant memory issues in with really large regions.

      The getEntries 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 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

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            alberto.gomez Alberto Gomez
            ukohlmeyer Udo Kohlmeyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment