Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3462

BaseLocalIndexIT is changing server side properties of the shared test cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.9.0
    • None
    • None

    Description

      @BeforeClass
          public static void doSetup() throws Exception {
              Map<String, String> serverProps = Maps.newHashMapWithExpectedSize(7);
              serverProps.put(QueryServices.IS_NAMESPACE_MAPPING_ENABLED, "true");
              Map<String, String> clientProps = Maps.newHashMapWithExpectedSize(1);
              clientProps.put(QueryServices.IS_NAMESPACE_MAPPING_ENABLED, "true");
              setUpTestDriver(new ReadOnlyProps(serverProps.entrySet().iterator()), new ReadOnlyProps(clientProps.entrySet().iterator()));
          }
      

      FYI, rajeshbabu. If any test class needs to change the server side properties, then it needs to extend NeedsOwnClusterIT class. Tests extending ParallelStatsDisabledIT all share the same minicluster. So if a test like LocalIndexIT runs first, then subsequent tests could fail because they will unexpectedly see name space mapping as enabled on the server side.

      Attachments

        1. PHOENIX-3462.patch
          1 kB
          Samarth Jain

        Activity

          People

            Unassigned Unassigned
            samarthjain Samarth Jain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: