[DOCS-3081] Conflicting documentation on eval nolock option Created: 07/Apr/14  Updated: 24/Jul/14  Resolved: 24/Jul/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.8

Type: Task Priority: Critical - P2
Reporter: David Hows Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: sprint-rollover
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 29 weeks, 6 days ago

 Description   

Taken from FAQ: Concurrency
Write lock. If used with the nolock lock option, the eval option does not take a write lock and cannot write data to the database.

Taken from eval
By default, eval takes a global write lock before evaluating the JavaScript function. As a result, eval blocks all other read and write operations to the database while the eval operation runs. Set nolock to true on the eval command to prevent the eval command from taking the global write lock before evaluating the JavaScript. nolock does not impact whether operations within the JavaScript code itself takes a write lock.

These two doc's pages conflict each other regarding writes performed when the nolock option is specified. Can we please fix this up and ideally clarify the use-cases for using the lock vs nolock as this will help end-users understand the what/why of supplying the nolock option.



 Comments   
Comment by Githook User [ 24/Jul/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: manually apply DOCS-3081 to 2.4
Branch: v2.4
https://github.com/mongodb/docs/commit/7907830d39ad80ff6df5306fa2daf9c47b1552be

Comment by Githook User [ 24/Jul/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-3081 eval and write locks
Branch: master
https://github.com/mongodb/docs/commit/15595fdc99d05065f1b63a337cb0a1cddca2b4f9

Generated at Thu Feb 08 07:44:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.