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

serverStatus locks and recordStats have invalid text in keys

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: HTTP Console
    • Labels:
      None
    • Operating System:
      Linux

      Description

      I discovered this problem while trying to solve a problem with a Nagios MongoDB monitoring plugin that was returning "CRITICAL - General MongoDB Error: 'utf8' codec can't decode bytes in position 0-1: illegal encoding" while checking several MongoDB statistics from the serverStatus command.

      See the attached output from serverStatus using a browser.

      First note the interesting and large array of fields in "locks" and "recordStats". The documentation doesn't explain that. Note near the bottom of each field alphabetically there are several keys that appear to be binary and possibly badly encoded.

      I'm supposing that these badly formed strings are breaking the python string codec in the monitoring plugin.

      Restarting the mongodb instance resolves the issue by removing nearly all of the locks and recordStats.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ramon.fernandez Ramon Fernandez Marina
              Reporter:
              morrisjones Morris Jones
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: