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

createIndexes rounds expireAfterSeconds option on latest servers

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Indexing
    • Labels:

      Description

      The createIndexes behavior on latest servers was changed. Now, when I send this command:

      {
          "createIndexes": "CreateIndexesOperationTests",
          "indexes": [{
                  "key": {
                      "x": 1
                  },
                  "name": "x_1",
                  "expireAfterSeconds": 1.5
              }
          ]
      }
      

      the actually created index contains rounded expireAfterSeconds value. This is what I see via getIndexes for the above command:

      MongoDB Enterprise replset:PRIMARY> db.CreateIndexesOperationTests.getIndexes()
      [
              {
                      "v" : 2,
                      "key" : {
                              "_id" : 1
                      },
                      "name" : "_id_"
              },
              {
                      "v" : 2,
                      "key" : {
                              "x" : 1
                      },
                      "name" : "x_1",
                      "expireAfterSeconds" : 1
              }
      ]
      

      Was this intentional change? If it was I guess it should have generated a downstream changes notification.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-execution Backlog - Storage Execution Team
            Reporter:
            dmitry.lukyanov Dmitry Lukyanov
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: