GetMore commands are not sent with the namespace returned in the last batch.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.10.4, 2.11.0
    • Affects Version/s: None
    • Component/s: Wire Protocol
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Atlas Data Lake doesn't use traditional namespaces when returning cursor results. For example, a find or aggregate command on the "test.foo" namespace will not have the "test.foo" in the resulting "ns" field of the result. As such, the driver is failing to issue getMore requests because it uses the incorrect namespace.

      It appears that ListIndexes does this properly: https://github.com/mongodb/mongo-csharp-driver/blob/7cd604ab4fee1c3a02fd56e7b3f99215055785f4/src/MongoDB.Driver.Core/Core/Operations/ListIndexesUsingCommandOperation.cs#L169

      The others 2 places I found were Find and Aggregate which seem like they just need to be updated:
      https://github.com/mongodb/mongo-csharp-driver/blob/4bd195c198397a9ef4ca0f90a84652fdadfea216/src/MongoDB.Driver.Core/Core/Operations/AggregateOperation.cs#L403
      https://github.com/mongodb/mongo-csharp-driver/blob/7a2af91bb400ca23e2ec8cd0d14accc7b14908fa/src/MongoDB.Driver.Core/Core/Operations/FindCommandOperation.cs#L490

              Assignee:
              Mikalai Mazurenka (Inactive)
              Reporter:
              Craig Wilson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: