[SERVER-65704] BSONColumn validation reads uninitialized FCV for array compression feature flag check Created: 15/Apr/22  Updated: 29/Oct/23  Resolved: 15/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc1, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-63593 Support compressing arrays in BSONColumn Closed
is related to SERVER-61047 Add validate hook for testing that we... Closed
is related to SERVER-65263 Enable timeseriesBucketCompressionWit... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Execution Team 2022-05-02
Participants:
Linked BF Score: 165

 Description   

The test-only hook _validateBSONColumnRoundtrip() for BSONColumn validation assumes that the FCV is initialized when it checks if array compression is enabled.

This is not always the case especially in startupRepair() when repair::repairCollection() is called before we restore/initialize the FCV document.



 Comments   
Comment by Githook User [ 18/Apr/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-65704 always check array compression in test-only BSONColumn validation hook

(cherry picked from commit 941d7d65f2de075d53d2a2f80b780c98876fd731)
Branch: v6.0
https://github.com/mongodb/mongo/commit/7dec3cd8f8c93a041d7e255e287e3d0f17152640

Comment by Githook User [ 15/Apr/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-65704 always check array compression in test-only BSONColumn validation hook
Branch: master
https://github.com/mongodb/mongo/commit/941d7d65f2de075d53d2a2f80b780c98876fd731

Generated at Thu Feb 08 06:03:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.