[SERVER-69783] use integral type for TTL index test case in ttl_index_options.js Created: 16/Sep/22  Updated: 29/Oct/23  Resolved: 19/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0, 6.0.6

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-10075 Should forbid illegal form of TTL ind... Closed
is related to SERVER-68477 Improve NaN-handling for expireAfterS... Closed
is related to SERVER-69091 Handle additional out-of-bounds expir... Closed
is related to SERVER-69750 For certain index options, $listCatal... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Execution Team 2022-10-03
Participants:
Linked BF Score: 8

 Description   

The epoch test case in ttl_index_options.js uses a floating point value for the expireAfterSeconds, which should really be an integer. Even though current server semantics accept floating point values, we should update the test to use an integral type. To maintain existing test coverage, we could add a test case in to the unit test for index_key_validate::validateExpireAfterSeconds()

We could also revisit our current validation on numeric types in this ticket or in SERVER-69091.



 Comments   
Comment by Githook User [ 19/Apr/23 ]

Author:

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

Message: SERVER-69783 use integral value for large 'expireAfterSeconds' in ttl test

(cherry picked from commit 293bcb83c26a18ddaa74db375d3b1e3dac9a1bfe)
Branch: v6.0
https://github.com/mongodb/mongo/commit/8856ae5c99f5db9acf73291f8d0085a6a3f214dd

Comment by Githook User [ 19/Apr/23 ]

Author:

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

Message: SERVER-69783 add test case for TTL index with floating point 'expireAfterSeconds'

(cherry picked from commit fc98fdb6d67eb51112fcb72d82a561d580ee085a)
Branch: v6.0
https://github.com/mongodb/mongo/commit/d750ce3640ef43b11b9967636ed8428495c53f1b

Comment by Githook User [ 19/Sep/22 ]

Author:

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

Message: SERVER-69783 use integral value for large 'expireAfterSeconds' in ttl test
Branch: master
https://github.com/mongodb/mongo/commit/293bcb83c26a18ddaa74db375d3b1e3dac9a1bfe

Comment by Githook User [ 19/Sep/22 ]

Author:

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

Message: SERVER-69783 add test case for TTL index with floating point 'expireAfterSeconds'
Branch: master
https://github.com/mongodb/mongo/commit/fc98fdb6d67eb51112fcb72d82a561d580ee085a

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