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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.6
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Storage NYC 2018-12-03

      Description

      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): 
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              daniel.gottlieb Daniel Gottlieb
              Reporter:
              daniel.gottlieb Daniel Gottlieb
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: