Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-198

Always use command cursor 'ns' value for OP_GET_MORE

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      PYTHON-806 Done 2.8, 3.0
      RUBY-844 Done 1.12
      CXX-455 Done legacy-1.0.0-rc4
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion PYTHON-806 Done 2.8, 3.0 RUBY-844 Done 1.12 CXX-455 Done legacy-1.0.0-rc4

      Some drivers ignore the 'ns' field in the server's command cursor document for OP_GET_MORE. This hasn't resulted in any bug reports so far because the 'ns' value for an aggregate or parallelCollectionScan cursor is the same as the namespace of the collection running the command.

      For example, in python:

      >>> c.foo.bar.full_name
      u'foo.bar'
      >>> c.foo.command("aggregate", "bar", pipeline=[], cursor={})['cursor']['ns']
      u'foo.bar'
      

      However, the namespaces don't match for the new listCollections and listIndexes command. Again, in python:

      >>> c.foo.bar.full_name
      u'foo.bar'
      >>> c.foo.command("listCollections", 'bar', cursor={})['cursor']['ns']
      u'foo.$cmd.listCollections'
      

      The purpose of this ticket is to ensure that all drivers always use the 'ns' value for OP_GET_MORE, regardless of the command.

            Assignee:
            barrie Barrie Segal
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: