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

RequestHedgingProxyProvider#RequestHedgingInvocationHandler hides the Exception thrown from NameNode

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha4, 2.8.2
    • Component/s: ha
    • Labels:
      None
    • Hadoop Flags:
      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.000.patch
          5 kB
          Nanda kumar
        2. HDFS-11395.001.patch
          8 kB
          Nanda kumar
        3. HDFS-11395.002.patch
          8 kB
          Nanda kumar
        4. HDFS-11395.003.patch
          11 kB
          Nanda kumar
        5. HDFS-11395.004.patch
          11 kB
          Nanda kumar
        6. HDFS-11395.005.patch
          11 kB
          Nanda kumar

        Issue Links

          Activity

            People

            • Assignee:
              nanda Nanda kumar
              Reporter:
              nanda Nanda kumar

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment