Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13888

RequestHedgingProxyProvider shows InterruptedException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      RequestHedgingProxyProvider shows InterruptedException when running:

      2018-08-30 23:52:48,883 WARN ipc.Client: interrupted waiting to send rpc request to server
      java.lang.InterruptedException
              at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:404)
              at java.util.concurrent.FutureTask.get(FutureTask.java:191)
              at org.apache.hadoop.ipc.Client$Connection.sendRpcRequest(Client.java:1142)
              at org.apache.hadoop.ipc.Client.call(Client.java:1395)
              at org.apache.hadoop.ipc.Client.call(Client.java:1353)
              at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:228)
              at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:116)
              at com.sun.proxy.$Proxy11.getFileInfo(Unknown Source)
              at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:900)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.hadoop.hdfs.server.namenode.ha.RequestHedgingProxyProvider$RequestHedgingInvocationHandler$1.call(RequestHedgingProxyProvider.java:135)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

      It looks like this is the case of the background request that is killed once the main one succeeds. We should not log the full stack trace for this and maybe just a debug log.

        Attachments

        1. HDFS-13888.004.patch
          12 kB
          Jinglun
        2. HDFS-13888.003.patch
          11 kB
          Jinglun
        3. HDFS-13888.002.patch
          10 kB
          Jinglun
        4. HDFS-13888.001.patch
          0.8 kB
          Jinglun

          Issue Links

            Activity

              People

              • Assignee:
                LiJinglun Jinglun
                Reporter:
                elgoiri Íñigo Goiri
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: