You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Dale Emery (Jira)" <ji...@apache.org> on 2020/12/01 18:51:00 UTC

[jira] [Created] (GEODE-8752) PersistentPartitionedRegionDistributedTest.missingDiskStoreCanBeRevokedBeforeStartingServer() test uses wrong address to revoke

Dale Emery created GEODE-8752:
---------------------------------

             Summary: PersistentPartitionedRegionDistributedTest.missingDiskStoreCanBeRevokedBeforeStartingServer() test uses wrong address to revoke
                 Key: GEODE-8752
                 URL: https://issues.apache.org/jira/browse/GEODE-8752
             Project: Geode
          Issue Type: Test
          Components: tests
    Affects Versions: 1.14.0
            Reporter: Dale Emery


PersistentPartitionedRegionDistributedTest.missingDiskStoreCanBeRevokedBeforeStartingServer() test uses the wrong address to revoke persistent members.

The product uses {{LocalHostUtil.getLocalHost()}} in its member IDs.

Once upon a time, the test used {{InetAddress.getLocalHost()}} to get the address to revoke, but in some circumstances that can return an in appropriate address.

GEODE-7029 changed the test to use a different mechanism to find the address to revoke: Walk through all available addresses on all available interfaces to find a non-loopback IPv4 address. But in some circumstances that can return an address other than the one used in the to-be-revoked member's ID, and the test fails.

Both of these methods of getting the revoke address rest on unwarranted assumptions. The test should instead query the member to discover the address used in its actual ID, then use that address to revoke the member.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)