[SERVER-57178] add regression test for multikey compound index Created: 25/May/21  Updated: 29/Oct/23  Resolved: 26/May/21

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 5.0.0-rc2, 4.4.9, 5.1.0-rc0

Type: Improvement 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-56877 insert operations may fail to set ind... Closed
is related to SERVER-57127 Refactor multikey and other state out... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0, v4.4
Sprint: Execution Team 2021-05-31
Participants:
Linked BF Score: 54

 Description   

This addresses missing test coverage for the case where we update different multikey paths in a compound index within a single storage transaction. This can be accomplished in a single insert command containing multiple documents that contain arrays in different fields that are both part of the same index key pattern.

This test should provide additional coverage for SERVER-56877 and SERVER-57127.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 11/Aug/21 ]

Author:

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

Message: SERVER-57178 add js test for verifying in-memory paths for compound multikey index

This test updates multikey paths for multiple indexed fields in a compound index
using different documents inserted within the same storage transaction, before
running a full validation to ensure the in-memory paths are correctly updated to
provided the necessary coverage for queries.

(cherry picked from commit de1fa178269c8cc55ad2012a786074c1d32109a9)
Branch: v4.4
https://github.com/mongodb/mongo/commit/ccae69efa20d3ed011718c54a2523ae63def0936

Comment by Githook User [ 20/Jul/21 ]

Author:

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

Message: SERVER-57178 validate_multikey_compound.js waits for primary to become available after restarting to check docs

(cherry picked from commit 3a6cfd0102cf7ded5304f6a6831ac7a85d74fa83)
Branch: v5.0
https://github.com/mongodb/mongo/commit/3ebcb3ca91086147b91e33a267acf8ed259ff621

Comment by Githook User [ 20/Jul/21 ]

Author:

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

Message: SERVER-57178 validate_multikey_stepdown.js waits for primary to become available after restarting to check docs

(cherry picked from commit 3c285730067966d090193a30642ca846a2a6f910)
Branch: v5.0
https://github.com/mongodb/mongo/commit/74bcc3194f0002e89bd24a1d60bca2d851f603b1

Comment by Githook User [ 20/Jul/21 ]

Author:

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

Message: SERVER-57178 validate_multikey_restart.js waits for primary to become available after restarting to check docs

(cherry picked from commit 27f800c38c785130818a7f64f7302e5e720f459e)
Branch: v5.0
https://github.com/mongodb/mongo/commit/c24bfb584ccc988109795fe3c657eaa619aed008

Comment by Githook User [ 09/Jun/21 ]

Author:

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

Message: SERVER-57178 add js test for verifying in-memory paths for compound multikey index

This test updates multikey paths for multiple indexed fields in a compound index
using different documents inserted within the same storage transaction, before
running a full validation to ensure the in-memory paths are correctly updated to
provided the necessary coverage for queries.

(cherry picked from commit de1fa178269c8cc55ad2012a786074c1d32109a9)
Branch: v5.0
https://github.com/mongodb/mongo/commit/5dac9bdc1c24be1b67b47fb22b50a86b732063e1

Comment by Githook User [ 26/May/21 ]

Author:

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

Message: SERVER-57178 validate_multikey_compound.js waits for primary to become available after restarting to check docs
Branch: master
https://github.com/mongodb/mongo/commit/3a6cfd0102cf7ded5304f6a6831ac7a85d74fa83

Comment by Githook User [ 25/May/21 ]

Author:

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

Message: SERVER-57178 validate_multikey_stepdown.js waits for primary to become available after restarting to check docs
Branch: master
https://github.com/mongodb/mongo/commit/3c285730067966d090193a30642ca846a2a6f910

Comment by Githook User [ 25/May/21 ]

Author:

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

Message: SERVER-57178 validate_multikey_restart.js waits for primary to become available after restarting to check docs
Branch: master
https://github.com/mongodb/mongo/commit/27f800c38c785130818a7f64f7302e5e720f459e

Comment by Githook User [ 25/May/21 ]

Author:

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

Message: SERVER-57178 add js test for verifying in-memory paths for compound multikey index

This test updates multikey paths for multiple indexed fields in a compound index
using different documents inserted within the same storage transaction, before
running a full validation to ensure the in-memory paths are correctly updated to
provided the necessary coverage for queries.
Branch: master
https://github.com/mongodb/mongo/commit/de1fa178269c8cc55ad2012a786074c1d32109a9

Generated at Thu Feb 08 05:41:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.