splitVector can't be run against secondary

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Sharding EMEA
              Reporter:
              Ben Smith
              Votes:
              11 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: