[SERVER-342] Floating point exception in mongoimportjson Created: 08/Oct/09  Updated: 12/Jul/16  Resolved: 08/Oct/09

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 1.1.1
Fix Version/s: 1.1.2

Type: Bug Priority: Major - P3
Reporter: Mathieu Poumeyrol Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Reproducable on Ubuntu, but probably not platform specific


Attachments: Text File div_by_zero.patch    
Participants:

 Description   

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.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 16/Oct/09 ]

release 10/16/2009

Comment by Eliot Horowitz (Inactive) [ 08/Oct/09 ]

fixed by using the new ProgressMeter class

Generated at Thu Feb 08 02:53:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.