phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samarth Jain (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PHOENIX-3462) BaseLocalIndexIT is changing server side properties of the shared test cluster
Date Mon, 07 Nov 2016 23:37:58 GMT
Samarth Jain created PHOENIX-3462:
-------------------------------------

             Summary: BaseLocalIndexIT is changing server side properties of the shared test
cluster
                 Key: PHOENIX-3462
                 URL: https://issues.apache.org/jira/browse/PHOENIX-3462
             Project: Phoenix
          Issue Type: Bug
            Reporter: Samarth Jain


{code}
@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()));
    }
{code}

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.
 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message