Skip to content

GEODE-10067: Optimize wan-copy region command#7420

Merged
albertogpz merged 1 commit intoapache:developfrom
Nordix:feature/GEODE-10067
Mar 18, 2022
Merged

GEODE-10067: Optimize wan-copy region command#7420
albertogpz merged 1 commit intoapache:developfrom
Nordix:feature/GEODE-10067

Conversation

@albertogpz
Copy link
Contributor

@albertogpz albertogpz commented Mar 5, 2022

When the region to copy is partitioned and
the gateway sender is parallel, the gateway
sender of each server will read and then send only the primary
copies in the local buckets of that server.
Deserialization of the entries will also avoided.

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Has your PR been rebased against the latest commit within the target branch (typically develop)?

  • Is your initial contribution a single, squashed commit?

  • Does gradlew build run cleanly?

  • Have you written or updated unit tests to verify your changes?

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

@albertogpz albertogpz force-pushed the feature/GEODE-10067 branch from b82ad3a to 8395c33 Compare March 6, 2022 18:43
@albertogpz albertogpz marked this pull request as ready for review March 7, 2022 15:24
@albertogpz albertogpz force-pushed the feature/GEODE-10067 branch from 8395c33 to 33e9ca4 Compare March 7, 2022 17:47
private Collection<?> getEntries(Region<?, ?> region, GatewaySender sender) {
if (region instanceof PartitionedRegion && sender.isParallel()) {
return ((PartitionedRegion) region).getDataStore().getEntries();
return PartitionRegionHelper.getLocalPrimaryData(region).entrySet();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely a much better set of data, compared to ALL data entries :D

Copy link
Contributor

@kohlmu-pivotal kohlmu-pivotal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once all tests pass, this change is approved

@albertogpz albertogpz force-pushed the feature/GEODE-10067 branch 4 times, most recently from e843660 to 40eb07d Compare March 8, 2022 12:20
When the region to copy is partitioned and
the gateway sender is parallel, each gateway
sender sends the primary copies of the
buckets in that server.
Deserialization of the entries is also avoided.
@albertogpz albertogpz force-pushed the feature/GEODE-10067 branch from 40eb07d to efdcf0c Compare March 8, 2022 13:26
@albertogpz albertogpz merged commit ffde8c7 into apache:develop Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments