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

PersistentPartitionedRegionDistributedTest.missingDiskStoreCanBeRevokedBeforeStartingServer() test uses wrong address to revoke

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                demery Dale Emery
                Reporter:
                demery Dale Emery
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: