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

MongoDB 6.0: Invalid UTF-8 string in BSON document when adding an arbiter

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.0.1
    • Component/s: None
    • Labels:
      None
    • ALL
    • Hide
      rs.initiate()
      rs.add("172.26.251.51:27017")
      rs.addArb("172.26.251.61:27017")  
      rs.status()
      Show
      rs.initiate() rs.add( "172.26.251.51:27017" ) rs.addArb( "172.26.251.61:27017" ) rs.status()

      I have an installation of 3 MongoDBs which should act as a replica set, two of them data bearing nodes and one an arbiter. I have already configured both data bearing nodes but I have a problem configuring the arbiter.

      > rs.addArb("172.26.251.61:27017")
      {
        ok: 1,
        '$clusterTime': {
          clusterTime: Timestamp({ t: 1663326365, i: 2 }),
          signature: {
            hash: Binary(Buffer.from("0000000000000000000000000000000000000000", "hex"), 0),
            keyId: Long("0")
          }
        },
        operationTime: Timestamp({ t: 1663326365, i: 2 })
      }
      

      Then I check and I get an error:

      rs.status()
      BSONError: Invalid UTF-8 string in BSON document
      

      If I remove the arbiter `rs.remove("172.26.251.61:27017")` then `rs.status()` works properly again:

            Assignee:
            chris.kelly@mongodb.com Chris Kelly
            Reporter:
            jfontsaballs@gmail.com Jordi Font Saballs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: