[SERVER-32687] Ignore collection-not-found when fetching missing documents in sync_tail.cpp during initialSync Created: 12/Jan/18 Updated: 30/Oct/23 Resolved: 06/Feb/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 3.6.2, 3.7.2 |
| Fix Version/s: | 3.6.6, 3.7.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Matthew Russotto | Assignee: | Benety Goh |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | initialSync | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||
| Backport Requested: |
v3.6
|
||||||||||||||||||||||||||||
| Sprint: | Repl 2018-02-12 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Linked BF Score: | 74 | ||||||||||||||||||||||||||||
| Description |
|
Right now we attempt to fetch missing documents during initial sync. If we fail to fetch the document because the source doesn't have it, we assume it's been deleted and continue normally. But if the source collection has been deleted, we fail; instead, we should ignore that error as well. |
| Comments |
| Comment by Githook User [ 07/Jun/18 ] |
|
Author: {'username': 'smani87', 'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com'}Message: |
| Comment by Githook User [ 06/Feb/18 ] |
|
Author: {'email': 'benety@mongodb.com', 'name': 'Benety Goh', 'username': 'benety'}Message: |
| Comment by Spencer Brody (Inactive) [ 01/Feb/18 ] |
|
Makes sense to me |
| Comment by Benety Goh [ 31/Jan/18 ] |
|
Right now the code uasserts with a location code here, burying the original error code in the command result. Does it make sense to uassert on the converted command result (which should contain a NamespaceNotFound code)? |