Hadoop Common
  1. Hadoop Common
  2. HADOOP-10228

FsPermission#fromShort() should cache FsAction.values()

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: fs
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      FsPermission#fromShort() calls FsAction.values() every time, which causes unnecessary performance penalty.

        Activity

        Haohui Mai created issue -
        Haohui Mai made changes -
        Field Original Value New Value
        Attachment HADOOP-10228.000.patch [ 12622733 ]
        Haohui Mai made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Chris Nauroth made changes -
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 3.0.0 [ 12320357 ]
        Fix Version/s 2.4.0 [ 12324587 ]
        Affects Version/s 2.2.0 [ 12325048 ]
        Component/s fs [ 12310689 ]
        Chris Nauroth made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Chris Nauroth made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Target Version/s 3.0.0, 2.4.0 [ 12320357, 12324587 ]
        Resolution Fixed [ 1 ]
        Arun C Murthy made changes -
        Fix Version/s 2.3.0 [ 12325254 ]
        Fix Version/s 2.4.0 [ 12324587 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Allen Wittenauer made changes -
        Fix Version/s 3.0.0 [ 12320357 ]

          People

          • Assignee:
            Haohui Mai
            Reporter:
            Haohui Mai
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development