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.
- is related to
-
SERVER-10075 Should forbid illegal form of TTL indexes
- Closed
-
SERVER-68477 Improve NaN-handling for expireAfterSeconds TTL index parameter
- Closed
-
SERVER-69091 Handle additional out-of-bounds expireAfterSeconds values for TTL indexes
- Closed
-
SERVER-69750 For certain index options, $listCatalog output could have inconsistent data type as $listIndexes
- Closed