Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GEODE-9484: Improve sending message to multy destinations #7664

Merged
merged 7 commits into from Jul 1, 2022

Conversation

mivanac
Copy link
Contributor

@mivanac mivanac commented May 6, 2022

Problem:
When replicating to other servers, current logic would first create connections toward all servers, and then replicate data over those connections. Creation of connections will last, until all connections are created, or destination server/s is/are declared dead.

Solution:
New proposal is, when replicating data, first try to create connections to all destinations in one attempt. For all created connections we will replicate data. After this step is completed, we will try to create remaining connections to all unreachable destinations, until connections are established, or destination is declared dead. If connections are established we will replicate data.

For more info see https://cwiki.apache.org/confluence/display/GEODE/Improve+data+inconsistency+in+replicated+regions

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?

@mivanac
Copy link
Contributor Author

mivanac commented May 11, 2022

Hi @Bill, @echobravopapa, @agingade, @kamilla1201 and @pivotal-jbarrett
could you review this PR.
Thanks

@mivanac
Copy link
Contributor Author

mivanac commented May 18, 2022

Hi @Bill, @echobravopapa, @agingade, @kamilla1201 and @pivotal-jbarrett
could you review this PR.
This was reverted PR with modifications for failing internal test.
Thanks

@mivanac
Copy link
Contributor Author

mivanac commented May 27, 2022

Hi @Bill, @echobravopapa, @agingade, @kamilla1201 and @pivotal-jbarrett
just a reminder,
could you review this PR.
This was reverted PR with modifications for failing internal test.
Thanks

@mivanac
Copy link
Contributor Author

mivanac commented Jun 7, 2022

Hi @Bill, @echobravopapa, @agingade, @kamilla1201 and @pivotal-jbarrett
could you review this PR.

@mivanac
Copy link
Contributor Author

mivanac commented Jun 15, 2022

Hi @Bill, @echobravopapa, @agingade, @kamilla1201 and @pivotal-jbarrett
just a reminder,
could you review this PR.
This was reverted PR with modifications for failing internal test.
Thanks

@mivanac
Copy link
Contributor Author

mivanac commented Jun 23, 2022

Hi @Bill, @echobravopapa, @agingade, @kamilla1201 and @pivotal-jbarrett
could you review this PR.

@jake-at-work
Copy link
Contributor

This PR would probably get more notice with a properly formatted and descriptive title.

@@ -258,7 +309,7 @@ private Integer createServerCache() throws Exception {
server.setPort(port);
server.setNotifyBySubscription(true);
server.start();
return server.getPort();
return new Integer(server.getPort());
Copy link
Contributor

Choose a reason for hiding this comment

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

Unnecessary explicit integer boxing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for comments. Updated.

@mivanac mivanac changed the title Newfeature2/geode 9484 GEODE-9484: Improve sending message to multy destinations Jun 30, 2022
@mivanac mivanac merged commit 1d25728 into apache:develop Jul 1, 2022
mkevo pushed a commit to Nordix/geode that referenced this pull request Sep 7, 2022
* GEODE-9484: New solution to first try only one attempt to create all connections

* GEODE-9484: added fix for NPE
mkevo pushed a commit to Nordix/geode that referenced this pull request Sep 12, 2022
* GEODE-9484: New solution to first try only one attempt to create all connections

* GEODE-9484: added fix for NPE
mkevo added a commit that referenced this pull request Sep 12, 2022
)

Co-authored-by: Mario Ivanac <48509724+mivanac@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants