phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-886) error when drop table
Date Wed, 16 Apr 2014 17:28:17 GMT

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

ASF GitHub Bot commented on PHOENIX-886:
----------------------------------------

Github user JamesRTaylor commented on a diff in the pull request:

    https://github.com/apache/incubator-phoenix/pull/29#discussion_r11695764
  
    --- Diff: phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
---
    @@ -258,6 +258,24 @@ public HTableInterface getTable(byte[] tableName) throws SQLException
{
         
         @Override
         public HTableDescriptor getTableDescriptor(byte[] tableName) throws SQLException
{
    +        HBaseAdmin admin = getAdmin();
    --- End diff --
    
    We turn this exception into a TableNotFoundException on purpose. We don't want to make
two admin calls in order to get the HTableDescriptor. If you feel strongly, then file an HBase
bug to decrease the log level of this exception.


> error when drop table
> ---------------------
>
>                 Key: PHOENIX-886
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-886
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: yang ming
>
> The table can be dropped,but throw this warnning.
> 0: jdbc:phoenix:10.10.69.117> drop table YK.VIDEO_REGION;
> 14/03/21 17:26:49 WARN client.HConnectionManager$HConnectionImplementation: Encountered
problems when prefetch META table: 
> org.apache.hadoop.hbase.TableNotFoundException: Cannot find row in .META. for table:
_IDX_YK.VIDEO_REGION, row=_IDX_YK.VIDEO_REGION,,99999999999999
>         at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:151)
>         at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.prefetchRegionCache(HConnectionManager.java:1059)
>         at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:1121)
>         at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:1001)
>         at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:958)
>         at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:251)
>         at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:243)
>         at org.apache.phoenix.query.HTableFactory$HTableFactoryImpl.getTable(HTableFactory.java:51)
>         at org.apache.phoenix.query.ConnectionQueryServicesImpl.getTable(ConnectionQueryServicesImpl.java:242)
>         at org.apache.phoenix.query.ConnectionQueryServicesImpl.getTableDescriptor(ConnectionQueryServicesImpl.java:254)
>         at org.apache.phoenix.util.MetaDataUtil.hasViewIndexTable(MetaDataUtil.java:269)
>         at org.apache.phoenix.schema.MetaDataClient.dropTable(MetaDataClient.java:1303)
>         at org.apache.phoenix.schema.MetaDataClient.dropTable(MetaDataClient.java:1244)
>         at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropTableStatement$1.execute(PhoenixStatement.java:519)
>         at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:226)
>         at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:919)
>         at sqlline.SqlLine$Commands.execute(SqlLine.java:3673)
>         at sqlline.SqlLine$Commands.sql(SqlLine.java:3584)
>         at sqlline.SqlLine.dispatch(SqlLine.java:821)
>         at sqlline.SqlLine.begin(SqlLine.java:699)
>         at sqlline.SqlLine.mainWithInputRedirection(SqlLine.java:441)
>         at sqlline.SqlLine.main(SqlLine.java:424)
> No rows affected (3.418 seconds)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message