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

Make distributed-lock timeouts configurable

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • TIG 9 (09/18/15)

    Description

      We'd like to be able to test distributed-lock takeover scenarios. Right now, though, the lock timeouts are set to 15 minutes, which prevents effective testing:

      https://github.com/mongodb/mongo/blob/r3.1.7/src/mongo/s/catalog/legacy/distlock.h#L43
      https://github.com/mongodb/mongo/blob/r3.1.7/src/mongo/s/catalog/replset/replset_dist_lock_manager.cpp#L57

      Let's make the timeouts configurable with either:

      1. MONGO_EXPORT_SERVER_PARAMETER macros
      2. Configurable failpoints

      Attachments

        Activity

          People

            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: