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

Add test coverage for LOCATOR_DM_TYPE and NORMAL_DM_TYPE

    XMLWordPrintableJSON

Details

    Description

      Add test coverage for LOCATOR_DM_TYPE and NORMAL_DM_TYPE.

      PR #6225 is trying to redefine the nodes stat in DistributionStats. Understanding why this change is not allowed requires understanding the difference between LOCATOR_DM_TYPE and NORMAL_DM_TYPE.

      Servers and Locators started via Gfsh are both of type NORMAL_DM_TYPE, however, some locators are of the type LOCATOR_DM_TYPE.

      Older scripts and tools set:

      System.setProperty(InternalLocator.FORCE_LOCATOR_DM_TYPE, "true");
      

      which then results in the locator in that JVM having LOCATOR_DM_TYPE. Otherwise is of type NORMAL_DM_TYPE. Usage of FORCE_LOCATOR_DM_TYPE is considered an API until Geode 2.0 because it was documented for Users at some point and has been actively used in scripting and tooling for Geode.

      DistributionStats nodes is defined as NOT counting processes of type LOCATOR_DM_TYPE.

      Attachments

        Issue Links

          Activity

            People

              klund Kirk Lund
              klund Kirk Lund
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: