Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1935 Security for timeline server
  3. YARN-2118

Type mismatch in contains() check of TimelineWebServices#injectOwnerInfo()

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

          if (timelineEntity.getPrimaryFilters() != null &&
              timelineEntity.getPrimaryFilters().containsKey(
                  TimelineStore.SystemFilter.ENTITY_OWNER)) {
            throw new YarnException(
      

      getPrimaryFilters() returns a Map keyed by String.
      However, TimelineStore.SystemFilter.ENTITY_OWNER is an enum.
      Their types don't match.

        Attachments

        1. yarn-2118-v3.txt
          4 kB
          Ted Yu
        2. yarn-2118-v2.txt
          4 kB
          Ted Yu
        3. yarn-2118-v1.txt
          1 kB
          Ted Yu

          Activity

            People

            • Assignee:
              yuzhihong@gmail.com Ted Yu
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: