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

CPUTimeTracker.updateElapsedJiffies can report negative usage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-beta1
    • None
    • None
    • Reviewed

    Description

      It happens, when the process exited and elapsedJiffies becomes 0 again.

        public void updateElapsedJiffies(BigInteger elapsedJiffies, long newTime) {
          cumulativeCpuTime = elapsedJiffies.multiply(jiffyLengthInMillis);
          sampleTime = newTime;
       }
      

      Attachments

        1. YARN-7181.000.patch
          3 kB
          Miklos Szegedi

        Activity

          People

            miklos.szegedi@cloudera.com Miklos Szegedi
            miklos.szegedi@cloudera.com Miklos Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: