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

splitVector can't be run against secondary

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.0
    • Component/s: Replication, Sharding
    • None
    • Sharding EMEA

      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

            Assignee:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            bensmith Ben Smith
            Votes:
            11 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: