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

I have discovered a bug where MongoDB running on a Chinese Windows 10 system encounters an error when executing rs.status() in a replica set

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • ALL

      I found a bug where MongoDB running on a Chinese Windows 10 system encounters an error when executing rs.status() in a replica set. My replica set consists of three MongoDB instances. When all three instances are running normally, rs.status() returns the correct result. However, if one MongoDB instance stops running, rs.status() only returns BSONError: Invalid UTF-8 string in BSON document. The reason is that the software reports an error due to not receiving the heartbeat packet from that instance, and the error message contains strings from the Chinese Windows 10 system. These strings are not in UTF-8 encoding, causing rs.status() to fail.

      A temporary workaround I found is to change the language for non-Unicode programs in Chinese Windows 10 to English, which temporarily resolves the issue. However, I hope MongoDB can fix this bug.

            Assignee:
            chris.kelly@mongodb.com Chris Kelly
            Reporter:
            jankin.li@goertek.com jankin li
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: