[SERVER-61321] Improve handling of large/NaN values for text index version Created: 08/Nov/21  Updated: 29/Oct/23  Resolved: 02/Dec/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 4.4.16, 4.2.22, 5.0.11

Type: Bug Priority: Critical - P2
Reporter: Gregory Noma Assignee: Shin Yee Tan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-60607 improve handling of large/NaN values ... Closed
related to SERVER-56676 improve handling of large/NaN values ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4, v4.2
Sprint: Execution Team 2021-12-13
Participants:
Linked BF Score: 27

 Description   

Similar to SERVER-60607 and SERVER-56676, in order to handle large values, we can use BSONElement::safeNumberInt or BSONElement::safeNumberLong when checking the version of a text index.



 Comments   
Comment by Githook User [ 27/Jul/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-61321 Improve handling of large/NaN values for text index version

(cherry picked from commit f627cf4f1af7ea9e47337664e88c3dbe3c9b29fa)
Branch: v4.2
https://github.com/mongodb/mongo/commit/a0a8c9a66fdaf58c13d2a8a211383bbe01b8e58b

Comment by Githook User [ 27/Jul/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-61321 Improve handling of large/NaN values for text index version

(cherry picked from commit f627cf4f1af7ea9e47337664e88c3dbe3c9b29fa)
Branch: v4.4
https://github.com/mongodb/mongo/commit/5bc09fbae89fd9db54e259e30f7189a117dd46a9

Comment by Githook User [ 26/Jul/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-61321 Improve handling of large/NaN values for text index version

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

Comment by Githook User [ 02/Dec/21 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-61321 Improve handling of large/NaN values for text index version
Branch: master
https://github.com/mongodb/mongo/commit/f627cf4f1af7ea9e47337664e88c3dbe3c9b29fa

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