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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0
    • None
    • None
    • 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-v1.txt
          1 kB
          Ted Yu
        2. yarn-2118-v2.txt
          4 kB
          Ted Yu
        3. yarn-2118-v3.txt
          4 kB
          Ted Yu

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: