You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Stephen Yuan Jiang (JIRA)" <ji...@apache.org> on 2016/10/20 17:23:58 UTC

[jira] [Created] (HBASE-16889) Proc-V2: verifyTables in the IntegrationTestDDLMasterFailover test after each table DDL is incorrect

Stephen Yuan Jiang created HBASE-16889:
------------------------------------------

             Summary: Proc-V2: verifyTables in the IntegrationTestDDLMasterFailover test after each table DDL is incorrect 
                 Key: HBASE-16889
                 URL: https://issues.apache.org/jira/browse/HBASE-16889
             Project: HBase
          Issue Type: Bug
          Components: proc-v2
    Affects Versions: 1.1.7, 2.0.0
            Reporter: Stephen Yuan Jiang
            Assignee: Stephen Yuan Jiang


In the IntegrationTestDDLMasterFailover test, verifyTables is called after each table DDL.  It iterates 3 lists of tables in ConcurrentHashMap (enabledTables, disabledTables, deletedTables) and tries to do some verification.  This is incorrect, eg. a table in enabledTables map could be picked up by DeleteTableAction and is disabled, while the verification tries to check whether table is enabled.  This leads to false assertion.  

The same for verifyNamespaces().  

The proposed fix is to verify maps only at the end of tests (while no active DDL operation is going on).  During test run, we only verify the target table before putting into map.



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