[SERVER-21480] Race condition in ttl1.js Created: 03/Nov/15 Updated: 01/Mar/17 Resolved: 23/Nov/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.15, 3.2.0-rc4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Geert Bosch | Assignee: | Geert Bosch |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Requested: |
v3.0
|
||||||||||||
| Steps To Reproduce: | Apply the following patch and run the jstests/noPassthroughWithMongod/ttl1.js test:
|
||||||||||||
| Sprint: | QuInt C (11/23/15) | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
The test waits until the TTL monitor starts deleting documents, and then right away checks that all documents have been deleted. Usually it will, because deleting a handful of documents takes so little time. Additionally, on MMAPv1 the exclusive lock will typically avoid access before the TTL thread completes. However a race exists. After talking with Kamran, the best solution seems to add another assert.soon. |
| Comments |
| Comment by Githook User [ 26/Jan/17 ] |
|
Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}Message: (cherry picked from commit 56943a545ab503b11b747bb40779ab01be58766b) |
| Comment by Githook User [ 23/Nov/15 ] |
|
Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}Message: |