Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25654

currentOp secs_running is negative if operation runs for over 24 days

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.4.0-rc2
    • Affects Version/s: 3.3.11
    • Component/s: Diagnostics
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      do as description.
      the reason is below: line 298 converts long long to int, it causes this bug

      291     int totalTimeMillis() {
      292         return (int)(totalTimeMicros() / 1000);
      293     }   
      294     long long elapsedMicros() {
      295         return curTimeMicros64() - startTime();
      296     }
      297     int elapsedMillis() {
      298         return (int)(elapsedMicros() / 1000);
      299     }
      300     int elapsedSeconds() {
      301         return elapsedMillis() / 1000;
      302     }
      
      Show
      do as description. the reason is below: line 298 converts long long to int, it causes this bug 291 int totalTimeMillis() { 292 return (int)(totalTimeMicros() / 1000); 293 } 294 long long elapsedMicros() { 295 return curTimeMicros64() - startTime(); 296 } 297 int elapsedMillis() { 298 return (int)(elapsedMicros() / 1000); 299 } 300 int elapsedSeconds() { 301 return elapsedMillis() / 1000; 302 }
    • Integration 2016-10-10, Integration 2016-10-31

      If an operations runs for more than 24 days(such as WT RecordStoreThread: local.oplog.rs), the currentOp's secs_running field returns a negative value

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            wolf_kdy deyukong
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: