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

Should use equals when compare Resource in RMNodeImpl#ReconnectNodeTransition

    XMLWordPrintableJSON

Details

    • 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

        1. YARN-3780.000.patch
          1 kB
          Zhihai Xu

        Activity

          People

            zxu Zhihai Xu
            zxu Zhihai Xu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: