-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Integration
-
Fully Compatible
From github comment:
Here we have no guarantee the view will be present. The routing information for a view could potentially be stale. When you route to the primary (as in this case) you always attach a dbVersion that represents the version of the information the router knows. However, before accessing any nss we need to verify those versions are up-to-date.
You can access the view by using shard role api as done here and replace the lookupView you run here. This equivalent but it will have the extra benefit of
- Check the attached version
- Throw in case the version is stale
- Refresh the router and retry on the correct primary
- is related to
-
SERVER-100908 view_Catalog_helpers::resolveView() should throw if requested to resolve a nss that is not a view
-
- Closed
-