You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2021/06/18 21:17:50 UTC
[GitHub] [geode] mhansonp opened a new pull request #6628: Do Not Review: trying out in distributed tests and elsewhere
mhansonp opened a new pull request #6628:
URL: https://github.com/apache/geode/pull/6628
Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
### 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](http://www.apache.org/legal/resolved.html#category-a)?
### Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] mhansonp closed pull request #6628: Do Not Review: trying out in distributed tests and elsewhere
Posted by GitBox <gi...@apache.org>.
mhansonp closed pull request #6628:
URL: https://github.com/apache/geode/pull/6628
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@geode.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] dschneider-pivotal commented on a change in pull request #6628: Do Not Review: trying out in distributed tests and elsewhere
Posted by GitBox <gi...@apache.org>.
dschneider-pivotal commented on a change in pull request #6628:
URL: https://github.com/apache/geode/pull/6628#discussion_r655585585
##########
File path: geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java
##########
@@ -1866,8 +1866,7 @@ public InternalDistributedMember getDistributedMember() {
// Search through the set of all members
for (InternalDistributedMember member : allMembers) {
-
- Set<InetAddress> equivalentAddresses = dm.getEquivalents(member.getInetAddress());
+ Set<InetAddress> equivalentAddresses = dm.getEquivalents(address);
Review comment:
This change looks wrong to me. My understanding of this method is that it is supposed to return all the members that use then given "address". It does this by iterating over the members and checking, first, is address equal to the member's address, and second, is address in the member's equivalent addresses. With your change the second condition should always be true since you are now getting address's equivalents and then checking if address is in them. That should always be true.
At least on the open side I only see this method called from a single test: DistributedMemberDUnitTest#testFindMemberByName. If that is the only use then it seems like you could delete this test (which seems to be testing this method) and delete this method from the product (since it no longer uses it).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] dschneider-pivotal commented on a change in pull request #6628: Do Not Review: trying out in distributed tests and elsewhere
Posted by GitBox <gi...@apache.org>.
dschneider-pivotal commented on a change in pull request #6628:
URL: https://github.com/apache/geode/pull/6628#discussion_r655585585
##########
File path: geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java
##########
@@ -1866,8 +1866,7 @@ public InternalDistributedMember getDistributedMember() {
// Search through the set of all members
for (InternalDistributedMember member : allMembers) {
-
- Set<InetAddress> equivalentAddresses = dm.getEquivalents(member.getInetAddress());
+ Set<InetAddress> equivalentAddresses = dm.getEquivalents(address);
Review comment:
This change looks wrong to me. My understanding of this method is that it is supposed to return all the members that use then given "address". It does this by iterating over the members and checking, first, is address equal to the member's address, and second, is address in the member's equivalent addresses. With your change the second condition should always be true since you are now getting address's equivalents and then checking if address is in them. That should always be true.
At least on the open side I only see this method called from a single test: DistributedMemberDUnitTest#testFindMemberByName. If that is the only use then it seems like you could delete this test (which seems to be testing this method) and delete this method from the product (since it no longer uses it).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org