Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3207

secondary filter matches entites which do not have the key being filtered for.

    XMLWordPrintableJSON

Details

    Description

      in the leveldb implementation of the TimelineStore the secondary filter matches entities where the key being searched for is not present.

      ex query from tez ui
      http://uvm:8188/ws/v1/timeline/TEZ_DAG_ID/?limit=1&secondaryFilter=foo:bar

      will match and return the entity even though there is no entity with otherinfo.foo defined.

      the issue seems to be in

      LeveldbTimelineStore:675
      if (vs != null && !vs.contains(filter.getValue())) {
        filterPassed = false;
        break;
      }
      

      this should be IMHO
      vs == null || !vs.contains(filter.getValue())

      Attachments

        1. YARN-3207.1.patch
          2 kB
          Zhijie Shen

        Issue Links

          Activity

            People

              zjshen Zhijie Shen
              pramachandran Prakash Ramachandran
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: