Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-69783

use integral type for TTL index test case in ttl_index_options.js

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0, 6.0.6
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • Execution Team 2022-10-03
    • 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.

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: