Hadoop Common
  1. Hadoop Common
  2. HADOOP-6582

Token class should have a toString, equals and hashcode method

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.21.0
    • Component/s: security
    • Labels:
      None

      Description

      The Token.toString would be helpful in logging. The equals/hashcode would be useful in UserGroupInformation.equals (currently the reference equality checks are done), and in other places.

      1. HADOOP-6582.patch
        4 kB
        Boris Shkolnik

        Activity

        Hide
        Boris Shkolnik added a comment -

        created toString - which includes 10 final charachters from id, kind and service (no password)
        and eclipse generated equals and hashCode
        Also modified TestToken to use them.

        Show
        Boris Shkolnik added a comment - created toString - which includes 10 final charachters from id, kind and service (no password) and eclipse generated equals and hashCode Also modified TestToken to use them.
        Hide
        Boris Shkolnik added a comment -

        fixed in a different patch.

        Show
        Boris Shkolnik added a comment - fixed in a different patch.

          People

          • Assignee:
            Boris Shkolnik
            Reporter:
            Devaraj Das
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development