Floating point exception in mongoimportjson

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.1.2
    • Affects Version/s: 1.1.1
    • Component/s: Tools
    • None
    • Environment:
      Reproducable on Ubuntu, but probably not platform specific
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When importing long list of small documents, mongoimportjson can crash with a Floating point exception. This is due to the progress rate calculation : when the document are small, the import can be fast to enough to get 10000 written under the second, resulting in a a division by zero.

      Provided patch to skip progress rate calculation when time difference is zero.

            Assignee:
            Eliot Horowitz (Inactive)
            Reporter:
            Mathieu Poumeyrol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: