[SERVER-37042] Handle exceptions from cursor.next in ReplSetTest Created: 07/Sep/18 Updated: 29/Oct/23 Resolved: 19/Sep/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.3, 4.1.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Bradford (Inactive) | Assignee: | David Bradford (Inactive) |
| Resolution: | Fixed | 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: |
v4.0
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 13 | ||||||||||||||||
| Description |
|
The `checkOplogs` function in ReplSetTest assumes that if a cursors `hasNext()` function does not throw an error that that cursors `next()` function will also not throw an error. This is not true, however. There are some cases where `hasNext()` could return true and `next()` throws an error. The `checkOplogs` function should handle those cases. |
| Comments |
| Comment by Githook User [ 19/Sep/18 ] |
|
Author: {'name': 'David Bradford', 'email': 'david.bradford@mongodb.com', 'username': 'dbradf'}Message: (cherry picked from commit 86d7a754bd72f055445968f4de92c60ae7b8ae70) |
| Comment by Githook User [ 19/Sep/18 ] |
|
Author: {'name': 'David Bradford', 'email': 'david.bradford@mongodb.com', 'username': 'dbradf'}Message: |