[SERVER-23917] splitVector can't be run against secondary Created: 25/Apr/16  Updated: 06/Dec/22  Resolved: 17/Dec/21

Status: Closed
Project: Core Server
Component/s: Replication, Sharding
Affects Version/s: 3.2.0
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Ben Smith Assignee: [DO NOT USE] Backlog - Sharding EMEA
Resolution: Won't Do Votes: 11
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-10117 expose splitVector functionality Closed
Related
is related to SERVER-5931 Secondary reads in sharded clusters n... Closed
Assigned Teams:
Sharding EMEA
Participants:

 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



 Comments   
Comment by Kaloian Manassiev [ 17/Dec/21 ]

This is an improvement, but we have other critical competing priorities, so closing as Won't Do.

Comment by Ben Smith [ 26/Apr/16 ]

Asking for similar enhancement

Comment by Ben Smith [ 25/Apr/16 ]

Thanks Ramon! Would be great to get this implemented.

Comment by Ramon Fernandez Marina [ 25/Apr/16 ]

Thanks for your report bensmith, we're re-classifying it as an improvement request to be considered for implementation in a future version of the product.

Generated at Thu Feb 08 04:04:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.