[DOCS-11931] eval is not supported on non-primary nodes Created: 31/Jul/18  Updated: 29/Oct/23  Resolved: 03/Aug/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Vick Mena (Inactive) Assignee: Allison Reinheimer Moore
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 5 years, 27 weeks, 5 days ago

 Description   

----------------------------

Original Description

db.eval() does not run on secondary nodes
https://github.com/mongodb/mongo/blob/r3.4.16/src/mongo/db/commands/eval.cpp#L155

The documentation does not mention this and we've had customers ask us how to run it on slaves.

Please add a line to the documentation to alert the users that the function is only supported on primary nodes.
----------------------------

Description

Scope of changes (files that need work and how much)

Impact to other docs outside of this product

MVP (work and date?)

Resources (e.g. Scope Docs, Invision)



 Comments   
Comment by Githook User [ 03/Aug/18 ]

Author:

{'username': 'schmalliso', 'name': 'Allison Reinheimer Moore', 'email': 'allison.moore@10gen.com'}

Message: DOCS-11931: db.eval must run on a primary
Branch: v3.2
https://github.com/mongodb/docs/commit/185e081f73df859f66a62cfa2515d62104751865

Comment by Githook User [ 03/Aug/18 ]

Author:

{'username': 'schmalliso', 'name': 'Allison Reinheimer Moore', 'email': 'allison.moore@10gen.com'}

Message: DOCS-11931: db.eval must run on a primary
Branch: v3.4
https://github.com/mongodb/docs/commit/41a0c785753a25a0fc3d6cab9c6e905733e47003

Comment by Githook User [ 03/Aug/18 ]

Author:

{'name': 'Allison Reinheimer Moore', 'email': 'allison.moore@10gen.com', 'username': 'schmalliso'}

Message: DOCS-11931: db.eval must run on a primary
Branch: v3.6
https://github.com/mongodb/docs/commit/ef84770743ab2f02b0af5726fd058bffe3e7cf1c

Comment by Githook User [ 03/Aug/18 ]

Author:

{'name': 'Allison Reinheimer Moore', 'email': 'allison.moore@10gen.com', 'username': 'schmalliso'}

Message: DOCS-11931: db.eval must run on a primary
Branch: master
https://github.com/mongodb/docs/commit/7acd7cb55caa1e3f36d8fb71b5b5a966348b4013

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