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

splitVector can't be run against secondary

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Won't Do
    • 3.2.0
    • None
    • Replication, Sharding
    • None

    Description

      Hi,

      I am working with the mongo hadoop connector on a replica set and I want to use it on a secondary machine. The mongo hadoop driver runs `splitVector` (https://github.com/mongodb/mongo-hadoop/blob/master/core/src/main/java/com/mongodb/hadoop/splitter/StandaloneMongoSplitter.java#L94). However, splitVector can't be run against a secondary machine:

      MongoDB Enterprise test:SECONDARY> db.runCommand({splitVector: "test.testData", "keyPattern": {_id: 1}, maxChunkSize: 1})
      { "ok" : 0, "errmsg" : "not master", "code" : 10107 }
      

      Can someone explain the reason for this? It would be great if we could use the mongo hadoop connector on a non-primary machine and this appears to be a blocking issue for that to happen.

      Thanks,
      Ben

      Attachments

        Issue Links

          Activity

            People

              backlog-server-sharding-emea Backlog - Sharding EMEA
              bensmith Ben Smith
              Votes:
              11 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: