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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.3
    • Affects Version/s: None
    • Component/s: Tools
    • None
    • Fully Compatible
    • ALL

      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 
      

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            eric.daniels@mongodb.com Eric Daniels
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: