Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-435 Java client cleanup for release
  3. KUDU-413

[java client] NPE in KuduClient$RemoteTablet.addTabletClient

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: M4.5
    • Fix Version/s: None
    • Component/s: client
    • Labels:
      None

      Description

      A unit test failed with:

      2014-07-29 13:53:45,764 (main) [INFO - kudu.rpc.KuduClient.discoverTablets(KuduClient.java:1049)] Discovering tablet MASTER_TABLE_HACK for table ~~~masterTableHack~~~ with start key "" and endkey ""
      2014-07-29 13:53:45,781 (main) [DEBUG - kudu.rpc.KuduClient.getIP(KuduClient.java:1468)] Resolved IP of `localhost' to 127.0.0.1 in 12988348ns
      2014-07-29 13:53:45,816 (main) [DEBUG - kudu.rpc.TabletClient.handleUpstream(TabletClient.java:505)] [id: 0x8ae78324] OPEN
      2014-07-29 13:53:45,825 (New I/O boss #17) [DEBUG - kudu.rpc.KuduClient.removeClientFromCache(KuduClient.java:1361)] Removed from IP cache: {127.0.0.1:64000} -> {TabletClient@610145197(chan=null, #pending_rpcs=0, #rpcs_inflight=0)}
      2014-07-29 13:53:45,827 (New I/O worker #1) [DEBUG - kudu.rpc.TabletClient.handleUpstream(TabletClient.java:505)] [id: 0x8ae78324] CLOSED
      2014-07-29 13:53:45,827 (New I/O boss #17) [DEBUG - kudu.rpc.TabletClient.handleUpstream(TabletClient.java:505)] [id: 0x8ae78324] EXCEPTION: java.net.ConnectException: Connection refused: /127.0.0.1:64000
      2014-07-29 13:53:45,828 (New I/O boss #17) [ERROR - kudu.rpc.TabletClient.exceptionCaught(TabletClient.java:583)] Unexpected exception from downstream on [id: 0x8ae78324]
      java.net.ConnectException: Connection refused: /127.0.0.1:64000
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
      	at org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150)
      	at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105)
      	at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79)
      	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)
      	at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      2014-07-29 13:53:45,830 (main) [DEBUG - kudu.rpc.TabletClient.handleUpstream(TabletClient.java:505)] [id: 0x84918f89] OPEN
      2014-07-29 13:53:45,831 (New I/O boss #17) [DEBUG - kudu.rpc.KuduClient.removeClientFromCache(KuduClient.java:1361)] Removed from IP cache: {127.0.0.1:64000} -> {TabletClient@1457155060(chan=null, #pending_rpcs=0, #rpcs_inflight=0)}
      2014-07-29 13:53:45,831 (New I/O worker #2) [DEBUG - kudu.rpc.TabletClient.handleUpstream(TabletClient.java:505)] [id: 0x84918f89] CLOSED
      2014-07-29 13:53:45,832 (main) [WARN - kudu.rpc.BaseKuduTest$4.call(BaseKuduTest.java:254)] Got exception
      java.lang.NullPointerException
      	at kudu.rpc.KuduClient$RemoteTablet.addTabletClient(KuduClient.java:1572)
      	at kudu.rpc.KuduClient$RemoteTablet.refreshServers(KuduClient.java:1549)
      	at kudu.rpc.KuduClient.discoverTablets(KuduClient.java:1038)
      	at kudu.rpc.KuduClient.access$400(KuduClient.java:110)
      	at kudu.rpc.KuduClient$MasterLookupCB.call(KuduClient.java:979)
      	at kudu.rpc.KuduClient$MasterLookupCB.call(KuduClient.java:972)
      	at com.stumbleupon.async.Deferred.doCall(Deferred.java:1278)
      	at com.stumbleupon.async.Deferred.addCallbacks(Deferred.java:688)
      	at com.stumbleupon.async.Deferred.addCallback(Deferred.java:724)
      	at kudu.rpc.KuduClient.locateTablet(KuduClient.java:835)
      	at kudu.rpc.KuduClient.sendRpcToTablet(KuduClient.java:579)
      

      http://sandbox.jenkins.cloudera.com/job/kudu-test/BUILD_TYPE=TSAN,label=kudu-gerrit-slaves/11415/artifact/java/kudu-client/target/surefire-reports/

        Attachments

          Activity

            People

            • Assignee:
              jdcryans Jean-Daniel Cryans
              Reporter:
              jdcryans Jean-Daniel Cryans
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: