[DOCS-13253] Investigate changes in SERVER-44617: $regexFind crash when one of the capture group doesn't match the input but pattern matches Created: 28/Nov/19  Updated: 13/Nov/23  Resolved: 27/Jan/20

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.3.3, 4.2.2, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Jeffrey Allen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-44617 $regexFind crash when one of the capt... Closed
Participants:
Days since reply: 4 years, 1 day ago
Epic Link: DOCS: 4.4 Server Release Work

 Description   

Description

Downstream Change Summary

With this change, we will put a 'null' placeholder if there is a non-matching capture group. We should clarify this new semantics using an example in the docs.

This is also backported to 4.2. We will need to update the docs for 4.2 as well.

Description of Linked Ticket

When running a simple regex query against 4.2.1 the mongod will crash with:

2019-11-14T05:52:41.884-0500 F  -        [conn1] terminate() called. An exception is active; attempting to gather more information
2019-11-14T05:52:41.982-0500 F  -        [conn1] std::exception::what(): out of range

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 11/Feb/20 ]

Author:

{'username': 'jeff-allen-mongo', 'name': 'jeff-allen-mongo', 'email': 'jeffrey.allen@10gen.com'}

Message: (DOCS-13253): Explain captures array behavior for regexFind/regexFindAll
Branch: v4.2
https://github.com/mongodb/docs/commit/644ed04ab8476ebb5b488ab0cfef4f15e6696993

Comment by Githook User [ 27/Jan/20 ]

Author:

{'username': 'jeff-allen-mongo', 'name': 'jeff-allen-mongo', 'email': 'jeffrey.allen@10gen.com'}

Message: (DOCS-13253): Explain captures array behavior for regexFind/regexFindAll
Branch: v4.2
https://github.com/mongodb/docs/commit/644ed04ab8476ebb5b488ab0cfef4f15e6696993

Comment by Githook User [ 27/Jan/20 ]

Author:

{'username': 'jeff-allen-mongo', 'name': 'jeff-allen-mongo', 'email': 'jeffrey.allen@10gen.com'}

Message: (DOCS-13253): Explain captures array behavior for regexFind/regexFindAll
Branch: master
https://github.com/mongodb/docs/commit/d57c5489a2cbe461cb387dcf2741e91f5fc6d930

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