[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: |
|
| 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 |