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

Unhandled duration_cast exception in DataFileSync::run can terminate server

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.1
    • Affects Version/s: 3.3.8
    • Component/s: MMAPv1
    • None
    • Fully Compatible
    • ALL
    • Storage 2016-12-12
    • 0

      It's possible for the server to terminate with an unhandled duration_cast exception if an invalid syncdelay value is specified:

      d20000| 2016-06-22T17:25:51.587-0400 E COMMAND  [DataFileSync] backgroundjob DataFileSync exception: Overflow casting from a lower-precision duration to a higher-precision duration
      d20000| 2016-06-22T17:25:51.588-0400 F -        [DataFileSync] terminate() called. An exception is active; attempting to gather more information
      d20000| 2016-06-22T17:25:51.590-0400 F -        [DataFileSync] DBException::toString(): 159 Overflow casting from a lower-precision duration to a higher-precision duration
      d20000| Actual exception type: mongo::UserException
      

      This bug seems to have been introduced after 3.3.6.

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: