[ 
https://issues.apache.org/jira/browse/PHOENIX-3757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15955976#comment-15955976
 ] 

Samarth Jain commented on PHOENIX-3757:
---------------------------------------

[~elserj]

For your new test class, you would probably want to extend 
BaseUniqueNamesOwnClusterIT. Are you testing for the case where the system 
tables are also using name spaces? I didn't see the property 

{code}
QueryServices.IS_SYSTEM_TABLE_MAPPED_TO_NAMESPACE
{code}

being set to true in the tests.

Also, shutting down the cluster after every test method is an overkill.
{code}
    @After
+    public void cleanup() throws Exception {
+        if (null != testUtil) {
+          testUtil.shutdownMiniCluster();
+          testUtil = null;
+        }
+    }
{code}


> System mutex table not being created in SYSTEM namespace when namespace 
> mapping is enabled
> ------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-3757
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3757
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>            Priority: Critical
>             Fix For: 4.11.0
>
>         Attachments: PHOENIX-3757.001.patch
>
>
> Noticed this issue while writing a test for PHOENIX-3756:
> The SYSTEM.MUTEX table is always created in the default namespace, even when 
> {{phoenix.schema.isNamespaceMappingEnabled=true}}. At a glance, it looks like 
> the logic for the other system tables isn't applied to the mutex table.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to