hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chan (Jira)" <j...@apache.org>
Subject [jira] [Created] (YARN-10394) RACK/NODE_LOCAL Request have same nodelabel as ANY Request
Date Tue, 11 Aug 2020 06:49:00 GMT
chan created YARN-10394:

             Summary: RACK/NODE_LOCAL Request have same nodelabel as ANY Request
                 Key: YARN-10394
                 URL: https://issues.apache.org/jira/browse/YARN-10394
             Project: Hadoop YARN
          Issue Type: Improvement
          Components: scheduler
    Affects Versions: 2.9.2
         Environment: {code:java}

 private void updateNodeLabels(ResourceRequest request) {
    String resourceName = request.getResourceName();
    if (resourceName.equals(ResourceRequest.ANY)) {
      ResourceRequest previousAnyRequest =
          getResourceRequest(resourceName);      // When there is change in ANY request label
expression, we should
      // update label for all resource requests already added of same
      // priority as ANY resource request.
      if ((null == previousAnyRequest) || hasRequestLabelChanged(
          previousAnyRequest, request)) {
        for (ResourceRequest r : resourceRequestMap.values()) {
          if (!r.getResourceName().equals(ResourceRequest.ANY)) {
    } else{

      // if resource Name is not ANY its nodeLabel will be same as ANY Request
      ResourceRequest anyRequest = getResourceRequest(ResourceRequest.ANY);
      if (anyRequest != null) {


            Reporter: chan

LocalitySchedulingPlacementSet.updateNodeLabels make RACK/NODE_LOCAL Request have same nodelabel
as ANY Request instead of <DEFAULT_PARTITION>

This message was sent by Atlassian Jira

To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org

View raw message