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

serverStatus locks and recordStats have invalid text in keys

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • 2.2.2
    • None
    • HTTP Console
    • None
    • 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

              ramon.fernandez@mongodb.com Ramon Fernandez Marina
              morrisjones Morris Jones
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: