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

RequestHedgingProxyProvider#RequestHedgingInvocationHandler hides the Exception thrown from NameNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha4, 2.8.2
    • ha
    • None
    • Reviewed

    Description

      When using RequestHedgingProxyProvider, in case of Exception (like FileNotFoundException) from ActiveNameNode, RequestHedgingProxyProvider#RequestHedgingInvocationHandler.invoke receives ExecutionException since we use CompletionService for the call. The ExecutionException is put into a map and wrapped with MultiException.

      So for a FileNotFoundException the client receives MultiException(Map(ExecutionException(InvocationTargetException(RemoteException(FileNotFoundException)))))

      It will cause problem in clients which are handling RemoteExceptions.

      Attachments

        1. HDFS-11395.005.patch
          11 kB
          Nandakumar
        2. HDFS-11395.004.patch
          11 kB
          Nandakumar
        3. HDFS-11395.003.patch
          11 kB
          Nandakumar
        4. HDFS-11395.002.patch
          8 kB
          Nandakumar
        5. HDFS-11395.001.patch
          8 kB
          Nandakumar
        6. HDFS-11395.000.patch
          5 kB
          Nandakumar

        Issue Links

          Activity

            People

              nanda Nandakumar
              nanda Nandakumar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: