Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7055 YARN Timeline Service v.2: beta 1 / GA
  3. YARN-7852

FlowRunReader constructs min_start_time filter for both createdtimestart and createdtimeend.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 3.0.0
    • None
    • timelinereader
    • None

    Description

      protected FilterList constructFilterListBasedOnFilters() throws IOException {
          FilterList listBasedOnFilters = new FilterList();
          // Filter based on created time range.
          Long createdTimeBegin = getFilters().getCreatedTimeBegin();
          Long createdTimeEnd = getFilters().getCreatedTimeEnd();
          if (createdTimeBegin != 0 || createdTimeEnd != Long.MAX_VALUE) {
            listBasedOnFilters.addFilter(TimelineFilterUtils
                .createSingleColValueFiltersByRange(FlowRunColumn.MIN_START_TIME,
                    createdTimeBegin, createdTimeEnd));
          }
          // Filter based on metric filters.
          TimelineFilterList metricFilters = getFilters().getMetricFilters();
          if (metricFilters != null && !metricFilters.getFilterList().isEmpty()) {
            listBasedOnFilters.addFilter(TimelineFilterUtils.createHBaseFilterList(
                FlowRunColumnPrefix.METRIC, metricFilters));
          }
          return listBasedOnFilters;
        }

       

      createdTimeEnd is used as an upper bound for MIN_START_TIME.  We should create one filter based on createdTimeBegin and another based on createdTimeEnd.

      Attachments

        Activity

          People

            haibochen Haibo Chen
            haibochen Haibo Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: