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

Should use equals when compare Resource in RMNodeImpl#ReconnectNodeTransition

    Details

    • Hadoop Flags:
      Reviewed

      Description

      Should use equals when compare Resource in RMNodeImpl#ReconnectNodeTransition to avoid unnecessary NodeResourceUpdateSchedulerEvent.
      The current code use != to compare Resource totalCapability, which will compare reference not the real value in Resource. So we should use equals to compare Resource.

        Attachments

          Activity

            People

            • Assignee:
              zxu zhihai xu
              Reporter:
              zxu zhihai xu
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: