Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3021

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

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

      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@mongodb.com Mikalai Mazurenka (Inactive)
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: