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

Sessions collection is not set up & Failed to generate TTL index for config.system.sessions on all shards

    • Type: Icon: Question Question
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.2
    • Component/s: Index Maintenance, Sharding, TTL
    • None

      After upgrade to MongoDB version 4.2.2,

      We got may message from config server as following:

      2020-01-02T02:02:11.259Z I  SHARDING [conn4808] distributed lock 'config' acquired for 'createCollection', ts : 5e0d4f2300cb687a26c36207
      2020-01-02T02:02:11.262Z I  SHARDING [conn4808] distributed lock 'config.system.sessions' acquired for 'createCollection', ts : 5e0d4f2300cb687a26c3620b
      2020-01-02T02:02:11.265Z I  SHARDING [conn4808] distributed lock with ts: 5e0d4f2300cb687a26c3620b' unlocked.
      2020-01-02T02:02:11.268Z I  SHARDING [conn4808] distributed lock with ts: 5e0d4f2300cb687a26c36207' unlocked.
      2020-01-02T02:02:38.918Z I  SHARDING [conn4808] distributed lock 'config' acquired for 'createCollection', ts : 5e0d4f3e00cb687a26c36304
      2020-01-02T02:02:38.921Z I  SHARDING [conn4808] distributed lock 'config.system.sessions' acquired for 'createCollection', ts : 5e0d4f3e00cb687a26c36308
      2020-01-02T02:02:38.924Z I  SHARDING [conn4808] distributed lock with ts: 5e0d4f3e00cb687a26c36308' unlocked.
      2020-01-02T02:02:38.927Z I  SHARDING [conn4808] distributed lock with ts: 5e0d4f3e00cb687a26c36304' unlocked.
      2020-01-02T02:02:38.927Z I  CONTROL  [LogicalSessionCacheRefresh] Failed to generate TTL index for config.system.sessions on all shards, will try again on the next refresh interval
      2020-01-02T02:02:38.927Z I  CONTROL  [LogicalSessionCacheRefresh] Sessions collection is not set up; waiting until next sessions refresh interval: request doesn't allow collection to be created implicitly
      2020-01-02T02:04:42.584Z I  SHARDING [conn4808] distributed lock 'config' acquired for 'createCollection', ts : 5e0d4fba00cb687a26c366f0
      2020-01-02T02:04:42.587Z I  SHARDING [conn4808] distributed lock 'config.system.sessions' acquired for 'createCollection', ts : 5e0d4fba00cb687a26c366f4
      2020-01-02T02:04:42.590Z I  SHARDING [conn4808] distributed lock with ts: 5e0d4fba00cb687a26c366f4' unlocked.
      2020-01-02T02:04:42.593Z I  SHARDING [conn4808] distributed lock with ts: 5e0d4fba00cb687a26c366f0' unlocked.
      2020-01-02T02:07:11.259Z I  SHARDING [conn4808] distributed lock 'config' acquired for 'createCollection', ts : 5e0d504f00cb687a26c36bbf
      2020-01-02T02:07:11.262Z I  SHARDING [conn4808] distributed lock 'config.system.sessions' acquired for 'createCollection', ts : 5e0d504f00cb687a26c36bc3
      

      Please, could you explain the signification and how fix it?

      Best regards,

            Assignee:
            carl.champain@mongodb.com Carl Champain (Inactive)
            Reporter:
            phiphiphina@gmail.com YUN-JHEN WANG
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: