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

Update mongo pretty printer to be compatible with more versions of python

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.6
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Storage NYC 2018-12-03

      Some python (such as ones in our current toolchain) do not care for this BSONObject pretty printing code: https://github.com/mongodb/mongo/blob/d963ad9dcca8258434e955891cbeccac7aaf3ad4/buildscripts/gdb/mongo_printers.py#L124-L126

      (gdb) print _request->body
      $3 = unowned BSONObj 865 bytes @ 0x7f068fe3489dPython Exception <type 'exceptions.TypeError'> unbound method decode() must be called with BSON instance as first argument (got str instance instead): 
      

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: