[SERVER-22945] Rewrite update_yield1.js to not depend heavily on timing Created: 03/Mar/16 Updated: 20/Nov/16 Resolved: 07/Mar/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 3.2.5, 3.3.3 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | David Storch | Assignee: | David Storch |
| Resolution: | Done | Votes: | 0 |
| Labels: | test-only | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Backport Completed: | |||||||||||||
| Sprint: | Query 11 (03/14/16) | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 0 | ||||||||||||
| Description |
|
The test update_yield1.js is designed to verify that a long-running multi-update yields to a findOne() operation. However, it depends heavily on timing information and has been shown to be flaky when the test runs slowly. We can test the same behavior in a much more dependable way as follows:
|
| Comments |
| Comment by Githook User [ 17/Mar/16 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: |
| Comment by David Storch [ 15/Mar/16 ] |
|
kamran.khan, sure, thanks for the heads up. |
| Comment by Githook User [ 07/Mar/16 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: |