[DOCS-10943] Disallow 3.6 query features in view definitions when featureCompatibilityVersion=3.4 (SERVER-31346) Created: 25/Oct/17  Updated: 29/Oct/23  Resolved: 30/Nov/17

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 3.6.0-rc1

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: read-only-views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

https://docs.mongodb.com/master/reference/command/setFeatureCompatibilityVersion/


Issue Links:
Documented
documents SERVER-31346 Disallow 3.6 query features in view d... Closed
Participants:
Days since reply: 6 years, 11 weeks ago
Epic Link: DOCS: 3.6 Server
Story Points: 0.2

 Description   

Documentation Request Summary:

We may want to add to our 3.6 featureCompatibility documentation instructions to remove views that contain 3.6 query features. You can run a 3.4 binary with these views, but any reads against them will fail.

Engineering Ticket Description:

When the featureCompatibilityVersion is 3.4, users should not be able to create a view that includes $expr or $jsonSchema in the $match stage. Disallowing this will prevent 3.4 secondaries from fasserting when replicating system.views and ensure that it is possible to downgrade to 3.4 as long as you have never set the featureCompatibilityVersion to 3.6.



 Comments   
Comment by Kay Kim (Inactive) [ 30/Nov/17 ]

We already covered this in our downgrade instructions:

https://docs.mongodb.com/master/release-notes/3.6-downgrade-standalone/#remove-backwards-incompatible-persisted-features

https://docs.mongodb.com/master/release-notes/3.6-downgrade-replica-set/#remove-backwards-incompatible-persisted-features

https://docs.mongodb.com/master/release-notes/3.6-downgrade-sharded-cluster/#remove-backwards-incompatible-persisted-features

I just blurbed that on the setFcv page, that if downgrading, you must also remove the persisted features and refer them back to the downgrade page.

Comment by Githook User [ 30/Nov/17 ]

Author:

{'name': 'kay', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11071,DOCS-10943 relnotes cleanup and singlesource fcv=3.4 cleanup
Branch: master
https://github.com/mongodb/docs/commit/d9ae0cbd7da1d7f630ba04439a4eff506f502f7a

Generated at Thu Feb 08 08:01:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.