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

Resharding critical section timeout is not honored on stepdown

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
    • Cluster Scalability
    • ALL
    • Hide

      The attached repro is not perfect since it assumes that the stepdown will happen before the timeout is hit, but it has reproduced the problem pretty consistently in my environment.

      Show
      The attached repro is not perfect since it assumes that the stepdown will happen before the timeout is hit, but it has reproduced the problem pretty consistently in my environment.

      The reshardingCriticalSectionTimeoutMillis parameter is intended to bound the amount of time that the critical section will be held during resharding. This is implemented by scheduling a callback which sets an error if the timeout is exceeded.

      However, this is a local callback that is scheduled, and it seems as though it is never re-scheduled in the case of stepdown so the timeout parameter will be ignored after a stepdown occurs.

            Assignee:
            adi.zaimi@mongodb.com Adi Zaimi
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: