[SERVER-4121] No way to query with slaveOk via HTTP interface Created: 21/Oct/11  Updated: 17/Feb/17  Resolved: 17/Feb/17

Status: Closed
Project: Core Server
Component/s: HTTP Console
Affects Version/s: 2.0.0
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Tony Hannan Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Won't Fix Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

"http://localhost:28002/test/foo/" against a secondary returns:

{
"offset" : 0,
"rows": [

{ "$err" : "not master and slaveok=false", "code" : 13435 }

],

"total_rows" : 1 ,
"query" : {} ,
"millis" : 0
}

How do you say "slave is ok"? I don't think you can.



 Comments   
Comment by Mira Carey [ 17/Feb/17 ]

The http interface was deprecated 2 releases ago and no further development is planned for that component

Comment by Scott Hernandez (Inactive) [ 24/Oct/11 ]

Yes, you can run commands which will write data on the server.

Setting the slaveOk flag on the query might not be a bad idea, but some things fail in other ways depending on what you do.

Comment by Malte Finsterwalder [ 24/Oct/11 ]

Is it possible to change data through the HTTP interface?
If not, then wouldn't slaveOK=true be a convenient and safe default for the HTTP interface?

Generated at Thu Feb 08 03:05:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.