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

Setting sleep to 0 in mongostat results in uninitialized data being printed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.3
    • Component/s: Tools
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      When using mongostat with sleep interval set to 0, mongostat ends up never sleeping and prints a bunch of garbage data. Seems like it's never giving up control of its thread to the serverThread() threads so that they can gather data.

      ./mongostat 0
       
      connected to: 127.0.0.1
       
               	insert  query update delete getmore command flushes mapped  vsize    res faults  locked db idx miss %     qr|qw   ar|aw  netIn netOut  conn  set repl       time 
      localhost	-2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648 -2147483648|-2147483648 -2147483648   288m  3.06g     6m -2147483648 local:nan%          0       0|0     0|0 -2147483648g -2147483648g     8 m101  PRI   20:39:39 
       
            localhost	-2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648 -2147483648|-2147483648 -2147483648   288m  3.06g     6m -2147483648 local:nan%          0       0|0     0|0 -2147483648g -2147483648g     8 m101  PRI   20:39:39 
      localhost:27017	no data
      localhost:27018	no data
      localhost:27019	no data
       
            localhost	-2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648 -2147483648|-2147483648 -2147483648   288m  3.06g     6m -2147483648 local:nan%          0       0|0     0|0 -2147483648g -2147483648g     8 m101  PRI   20:39:39 
      localhost:27017	no data
      localhost:27018	no data
      localhost:27019	no data
       
            localhost	-2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648 -2147483648|-2147483648 -2147483648   288m  3.06g     6m -2147483648 local:nan%          0       0|0     0|0 -2147483648g -2147483648g     8 m101  PRI   20:39:39 
      localhost:27017	no data
      localhost:27018	no data
      localhost:27019	no data
       
            localhost	-2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648 -2147483648|-2147483648 -2147483648   288m  3.06g     6m -2147483648 local:nan%          0       0|0     0|0 -2147483648g -2147483648g     9 m101  PRI   20:39:39 
      localhost:27017	-2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648 -2147483648|-2147483648 -2147483648   288m  3.06g     6m -2147483648 local:nan%          0       0|0     0|0 -2147483648g -2147483648g     9 m101  PRI   20:39:39 
      localhost:27018	no data
      localhost:27019	-2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648|-2147483648 -2147483648 -2147483648|-2147483648 -2147483648   288m  3.05g     6m -2147483648 local:nan%          0       0|0     0|0 -2147483648g -2147483648g     3 m101  SEC   20:39:39 

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: