Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5533

Creating a view or index with a 4.14 client and 4.15.0 server fails with a NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 4.15.0, 5.1.0
    • 4.15.0, 5.1.0
    • None
    • None

    Description

      When calling "CREATE VIEW":

      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)
      

      Similarly when calling "CREATE INDEX"

      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)
      

      Attachments

        1. 5533-4.x-HBase-1.5-v2.txt
          4 kB
          Lars Hofhansl
        2. 5533-4.x-HBase-1.5.txt
          4 kB
          Lars Hofhansl
        3. 5533-4.x-HBase-1.5.txt
          4 kB
          Lars Hofhansl

        Issue Links

          Activity

            People

              larsh Lars Hofhansl
              ckulkarni Chinmay Kulkarni
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: