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

NPE when running end2end tests against a live cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 4.0.0
    • None
    • None

    Description

      Below is the error stack trace. The cause is that MetaDataEndpointImpl#loadTable doesn't check if a table is a deleted marker after the line

      PTable table = metaDataCache.getIfPresent(cacheKey);

      .

      2014-03-18 10:54:06,633 ERROR [RpcServer.handler=8,port=60020] coprocessor.MetaDataEndpointImpl: dropTable failed
      java.lang.NullPointerException
              at org.apache.phoenix.schema.PTableImpl.toProto(PTableImpl.java:892)
              at org.apache.phoenix.coprocessor.MetaDataProtocol$MetaDataMutationResult.toProto(MetaDataProtocol.java:184)
              at org.apache.phoenix.coprocessor.MetaDataEndpointImpl.dropTable(MetaDataEndpointImpl.java:934)
              at org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaDataService.callMethod(MetaDataProtos.java:6565)
              at org.apache.hadoop.hbase.regionserver.HRegion.execService(HRegion.java:5489)
              at org.apache.hadoop.hbase.regionserver.HRegionServer.execService(HRegionServer.java:3297)
              at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:28865)
              at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2008)
              at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:92)
              at org.apache.hadoop.hbase.ipc.SimpleRpcScheduler.consumerLoop(SimpleRpcScheduler.java:160)
              at org.apache.hadoop.hbase.ipc.SimpleRpcScheduler.access$000(SimpleRpcScheduler.java:38)
              at org.apache.hadoop.hbase.ipc.SimpleRpcScheduler$1.run(SimpleRpcScheduler.java:110)
              at java.lang.Thread.run(Thread.java:722)
      

      Attachments

        1. phoenix-875.patch
          1.0 kB
          Jeffrey Zhong
        2. phoenix-875-v2.patch
          0.9 kB
          Jeffrey Zhong

        Activity

          People

            jeffreyz Jeffrey Zhong
            jeffreyz Jeffrey Zhong
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: