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

sharded listCollections and listIndexes commands need to store cursor with originalHost

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • Cluster Scalability

    Description

      Currently they call storePossibleCursor with conf->getPrimary().getConnString(). This is incorrect since it could refer to a replica set while storePossibleCursor must be passed the exact (single) server that created the cursor. Currently, this can only be done by creating a cursor to run the command as is done in PipelineCommand::aggRunCommand().

      Ideally a common runCommandWithPossibleCursor function can be provided and we can remove the "temporary hacks" that agg had to provide: https://github.com/mongodb/mongo/blob/r3.1.1/src/mongo/s/commands_public.cpp#L2059-L2074.

      Attachments

        Activity

          People

            backlog-server-cluster-scalability Backlog - Cluster Scalability
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: