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

Investigating removing getTrueCause method in Server.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.5.0
    • None
    • security, webhdfs

    Description

      When addressing Daryn Sharp's comment for HDFS-6475 quoted below:

      What I'm saying is I think the patch adds too much unnecessary code. Filing an improvement to delete all but a few lines of the code changed in this patch seems a bit odd. I think you just need to:

      • Delete getTrueCause entirely instead of moving it elsewhere
      • In saslProcess, just throw the exception instead of running it through getTrueCause since it's not a "InvalidToken wrapping another exception" anymore.
      • Keep your 3-line change to unwrap SecurityException in toResponse

      There are multiple test failures, after making the suggested changes, Filing this jira to dedicate to the investigation of removing getTrueCause method.

      More detail will be put in the first comment.

      Attachments

        1. HDFS-6588.001.patch
          9 kB
          Yongjun Zhang
        2. HDFS-6588.001.patch
          9 kB
          Yongjun Zhang
        3. HDFS-6588.001.patch
          9 kB
          Yongjun Zhang
        4. HDFS-6588.001.patch
          9 kB
          Yongjun Zhang

        Activity

          People

            yzhangal Yongjun Zhang
            yzhangal Yongjun Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: