You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Lars Hofhansl (Jira)" <ji...@apache.org> on 2019/10/19 21:50:00 UTC

[jira] [Comment Edited] (PHOENIX-5533) Creating a view or index with a 4.14 client and 4.15.0 server fails with a NullPointerException

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

Lars Hofhansl edited comment on PHOENIX-5533 at 10/19/19 9:49 PM:
------------------------------------------------------------------

Testing a fix right now.

In 4.15.0 parts of the schema management is done on the client. In this case the server expect the client to send along the parent table. An old client does not do this and so we need to look up the parent table on the server.

 Update: Index creation works. View creation is a bit more tricky.


was (Author: lhofhansl):
Testing a fix right now.

In 4.15.0 parts of the schema management is done on the client. In this case the server expect the client to send along the parent table. An old client does not do this and so we need to look up the parent table on the server.

 

> Creating a view or index with a 4.14 client and 4.15.0 server fails with a NullPointerException
> -----------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-5533
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5533
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.15.0, 5.1.0
>            Reporter: Chinmay Kulkarni
>            Assignee: Chinmay Kulkarni
>            Priority: Blocker
>             Fix For: 4.15.0, 5.1.0
>
>
> *When calling "CREATE VIEW":*
> {code:java}
> Caused by: java.lang.NullPointerException
> 	at org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(MetaDataEndpointImpl.java:1735)
> 	... 9 more
> 	at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:144)
> 	at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1464)
> 	at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1428)
> 	at org.apache.phoenix.query.ConnectionQueryServicesImpl.createTable(ConnectionQueryServicesImpl.java:1613)
> 	at org.apache.phoenix.schema.MetaDataClient.createTableInternal(MetaDataClient.java:2731)
> 	at org.apache.phoenix.schema.MetaDataClient.createTable(MetaDataClient.java:1115)
> 	at org.apache.phoenix.compile.CreateTableCompiler$1.execute(CreateTableCompiler.java:192)
> 	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:410)
> 	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:393)
> 	at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
> 	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:392)
> 	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:380)
> 	at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1829)
> {code}
> *Similarly when calling "CREATE INDEX"*
> {code:java}
> 2019-10-18 16:06:26,569 ERROR
> [RpcServer.FifoWFPBQ.default.handler=255,queue=21,port=16201]
> coprocessor.MetaDataEndpointImpl: createTable failed
> java.lang.NullPointerException
> at
> org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(MetaDataEndpointImpl.java:1758)
> at
> org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaDataService.callMethod(MetaDataProtos.java:17218)
> at
> org.apache.hadoop.hbase.regionserver.HRegion.execService(HRegion.java:8270)
> at
> org.apache.hadoop.hbase.regionserver.RSRpcServices.execServiceOnRegion(RSRpcServices.java:2207)
> at
> org.apache.hadoop.hbase.regionserver.RSRpcServices.execService(RSRpcServices.java:2189)
> at
> org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:35076)
> at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2373)
> at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:124)
> at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:188)
> at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:168)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)