[SERVER-35691] Make all code paths returning StaleConfig error go through the StaleConfigInfo serializer Created: 19/Jun/18 Updated: 29/Oct/23 Resolved: 22/Jun/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.1, 4.1.1 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Kaloian Manassiev | Assignee: | Kaloian Manassiev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Backport Requested: |
v4.0
|
||||||||||||
| Sprint: | Sharding 2018-07-02 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
Currently there are code paths, which manually construct the components for the StaleConfigInfo error. Because of this it is difficult to rely on its contents being populated, which leads to code like this. As part of this ticked, all such places should be identified and changed to use the StaleConfigInfo serialization. In addition, since the stale_config library depends on functionality which happens to be in the headers of common_s, specifically, ChunkVersion. Because of this, it needs to repeat the serialization logic of ChunkVersion. We should merge these two libraries (by folding stale_config into common_s) and should use the ChunkVersion serialization logic for StaleConfigInfo. |
| Comments |
| Comment by Githook User [ 01/Jul/18 ] |
|
Author: {'username': 'kaloianm', 'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com'}Message: (cherry picked from commit d49d27ec475a0c2054c2b5bb2a6b8391b0c30d10) |
| Comment by Githook User [ 27/Jun/18 ] |
|
Author: {'username': 'kaloianm', 'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com'}Message: |
| Comment by Githook User [ 22/Jun/18 ] |
|
Author: {'username': 'kaloianm', 'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com'}Message: |
| Comment by Githook User [ 22/Jun/18 ] |
|
Author: {'username': 'kaloianm', 'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com'}Message: |
| Comment by Githook User [ 20/Jun/18 ] |
|
Author: {'username': 'kaloianm', 'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com'}Message: |