[SERVER-44733] Explicitly return a stream-fatal error in cases where a change stream cannot be automatically resumed Created: 19/Nov/19 Updated: 29/Oct/23 Resolved: 06/Dec/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.17, 4.2.3, 4.3.3, 4.0.15 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Bernard Gorman | Assignee: | Bernard Gorman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | qexec-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Backport Requested: |
v4.2, v4.0, v3.6
|
||||||||||||||||||||
| Sprint: | Query 2019-12-16 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
At present, change streams may throw a variety of different error codes depending on the specific failure it encountered, such as InternalError, TooManyMatchingDocuments, or an unnamed code like 40576. Drivers do not recognise these as non-resumable exceptions, which can lead them to enter an infinite retry loop on a sharded cluster. |
| Comments |
| Comment by Githook User [ 19/Dec/19 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@mongodb.com', 'username': 'gormanb'}Message: (cherry picked from commit ccecd50087d22d90df71ab3c5dd4a58905590307) |
| Comment by Githook User [ 17/Dec/19 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@mongodb.com', 'username': 'gormanb'}Message: (cherry picked from commit ccecd50087d22d90df71ab3c5dd4a58905590307) |
| Comment by Githook User [ 17/Dec/19 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@mongodb.com', 'username': 'gormanb'}Message: (cherry picked from commit ccecd50087d22d90df71ab3c5dd4a58905590307) |
| Comment by Githook User [ 13/Dec/19 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@mongodb.com', 'username': 'gormanb'}Message: |
| Comment by Githook User [ 06/Dec/19 ] |
|
Author: {'name': 'Bernard Gorman', 'username': 'gormanb', 'email': 'bernard.gorman@mongodb.com'}Message: |