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

James Taylor commented on PHOENIX-3487:
---------------------------------------

Rather than assuming that every HBase table is a Phoenix table, we should be 
driving this from the DatabaseMetaData#getTables call like this:
{code}
        ResultSet rs = conn.getMetaData().getTables("", 
            PhoenixDatabaseMetaData.SYSTEM_CATALOG_SCHEMA, 
            null, 
            new String[] {PTableType.SYSTEM.toString()});
        while (rs.next()) {
            String schemaName = 
rs.getString(PhoenixDatabaseMetaData.TABLE_SCHEM);
            String tableName = rs.getString(PhoenixDatabaseMetaData.TABLE_NAME);
            String hbaseTableName = SchemaUtil.getTableName(schemaName, 
tableName);
            ...
        }
{code}

> IndexIT#testTableDescriptorPriority fails
> -----------------------------------------
>
>                 Key: PHOENIX-3487
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3487
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Samarth Jain
>            Assignee: Samarth Jain
>         Attachments: PHOENIX-3487.patch
>
>
> {code}
> Failed tests: 
>   IndexIT.testTableDescriptorPriority:1052 PRIORITY is not set for 
> table:'SYSTEM.MUTEX', {NAME => '0', DATA_BLOCK_ENCODING => 'NONE', 
> BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION 
> => 'NONE', MIN_VERSIONS => '0', TTL => '900 SECONDS (15 MINUTES)', 
> KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', 
> BLOCKCACHE => 'true'}
>   IndexIT.testTableDescriptorPriority:1052 PRIORITY is not set for 
> table:'SYSTEM.MUTEX', {NAME => '0', DATA_BLOCK_ENCODING => 'NONE', 
> BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION 
> => 'NONE', MIN_VERSIONS => '0', TTL => '900 SECONDS (15 MINUTES)', 
> KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', 
> BLOCKCACHE => 'true'}
>   IndexIT.testTableDescriptorPriority:1052 PRIORITY is not set for 
> table:'SYSTEM.MUTEX', {NAME => '0', DATA_BLOCK_ENCODING => 'NONE', 
> BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION 
> => 'NONE', MIN_VERSIONS => '0', TTL => '900 SECONDS (15 MINUTES)', 
> KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', 
> BLOCKCACHE => 'true'}
>   IndexIT.testTableDescriptorPriority:1052 PRIORITY is not set for 
> table:'SYSTEM.MUTEX', {NAME => '0', DATA_BLOCK_ENCODING => 'NONE', 
> BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION 
> => 'NONE', MIN_VERSIONS => '0', TTL => '900 SECONDS (15 MINUTES)', 
> KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', 
> BLOCKCACHE => 'true'}
>   IndexIT.testTableDescriptorPriority:1052 PRIORITY is not set for 
> table:'SYSTEM.MUTEX', {NAME => '0', DATA_BLOCK_ENCODING => 'NONE', 
> BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION 
> => 'NONE', MIN_VERSIONS => '0', TTL => '900 SECONDS (15 MINUTES)', 
> KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', 
> BLOCKCACHE => 'true'}
>   IndexIT.testTableDescriptorPriority:1052 PRIORITY is not set for 
> table:'SYSTEM.MUTEX', {NAME => '0', DATA_BLOCK_ENCODING => 'NONE', 
> BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION 
> => 'NONE', MIN_VERSIONS => '0', TTL => '900 SECONDS (15 MINUTES)', 
> KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', 
> BLOCKCACHE => 'true'}
>   IndexIT.testTableDescriptorPriority:1052 PRIORITY is not set for 
> table:'SYSTEM.MUTEX', {NAME => '0', DATA_BLOCK_ENCODING => 'NONE', 
> BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION 
> => 'NONE', MIN_VERSIONS => '0', TTL => '900 SECONDS (15 MINUTES)', 
> KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', 
> BLOCKCACHE => 'true'}
>   IndexIT.testTableDescriptorPriority:1052 PRIORITY is not set for 
> table:'SYSTEM.MUTEX', {NAME => '0', DATA_BLOCK_ENCODING => 'NONE', 
> BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION 
> => 'NONE', MIN_VERSIONS => '0', TTL => '900 SECONDS (15 MINUTES)', 
> KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', 
> BLOCKCACHE => 'true'}
> {code}



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

Reply via email to