Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-641

NPE in HCatalogStore.addTable()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0, 0.9.0
    • Fix Version/s: 0.8.0, 0.9.0
    • Component/s: Catalog
    • Labels:
      None

      Description

      Creating a table with csvfile.delimiter results in NPE.

      • SQL
        create table table1 (id int, name text, score float, type text) using csv with ('csvfile.delimiter'='|') ;
      • TajoMaster log
        2014-02-28 11:50:26,657 ERROR catalog.CatalogServer (CatalogServer.java:addTable(257)) - 
        java.lang.NullPointerException
        	at org.apache.tajo.catalog.store.HCatalogStore.addTable(HCatalogStore.java:335)
        	at org.apache.tajo.catalog.CatalogServer$CatalogProtocolHandler.addTable(CatalogServer.java:255)
        	at org.apache.tajo.catalog.AbstractCatalogClient$6.call(AbstractCatalogClient.java:161)
        	at org.apache.tajo.catalog.AbstractCatalogClient$6.call(AbstractCatalogClient.java:158)
        	at org.apache.tajo.rpc.ServerCallable.withRetries(ServerCallable.java:96)
        	at org.apache.tajo.catalog.AbstractCatalogClient.addTable(AbstractCatalogClient.java:158)
        	at org.apache.tajo.master.GlobalEngine.createTableOnPath(GlobalEngine.java:320)
        	at org.apache.tajo.master.GlobalEngine.createTable(GlobalEngine.java:283)
        	at org.apache.tajo.master.GlobalEngine.updateQuery(GlobalEngine.java:221)
        	at org.apache.tajo.master.GlobalEngine.executeQuery(GlobalEngine.java:142)
        	at org.apache.tajo.master.TajoMasterClientService$TajoMasterClientProtocolServiceHandler.submitQuery(TajoMasterClientService.java:162)
        	at org.apache.tajo.ipc.TajoMasterClientProtocol$TajoMasterClientProtocolService$2.callBlockingMethod(TajoMasterClientProtocol.java:289)
        	at org.apache.tajo.rpc.BlockingRpcServer$ServerHandler.messageReceived(BlockingRpcServer.java:103)
        	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
        	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
        	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
        	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
        	at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70)
        	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
        	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
        	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
        	at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
        	at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
        	at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
        	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
        	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
        	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
        	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
        	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
        	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
        	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
        	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
        	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
        	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
        	at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
        	at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        	at java.lang.Thread.run(Thread.java:680)
        
        

        Attachments

        1. TAJO-641.patch
          9 kB
          Jaehwa Jung
        2. TAJO-641_5.patch
          36 kB
          Jaehwa Jung
        3. TAJO-641_4.patch
          33 kB
          Jaehwa Jung
        4. TAJO-641_3.patch
          33 kB
          Jaehwa Jung
        5. TAJO-641_2.patch
          15 kB
          Jaehwa Jung

          Activity

            People

            • Assignee:
              blrunner Jaehwa Jung
              Reporter:
              blrunner Jaehwa Jung
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: