[SERVER-43103] Divide by zero error when moving extremely small chunks Created: 30/Aug/19  Updated: 29/Oct/23  Resolved: 16/Oct/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.3 Required, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: neweng-kal
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-54051 Got signal: 8 (Floating point exception) Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2019-10-21
Participants:
Linked BF Score: 59

 Description   

In this line it's possible for avgRecSize to be 0 if the number of bytes returned by dataSize is less than the number of records in the collection, which can cause a floating point exception/crash.



 Comments   
Comment by Githook User [ 16/Oct/19 ]

Author:

{'email': 'marcos.grillo@10gen.com', 'name': 'Marcos José Grillo Ramírez'}

Message: SERVER-43103 fix divison by zero when moving extremely small chunks
Branch: master
https://github.com/mongodb/mongo/commit/09d31a1231f42eb84057938d15a3bae333e75f39

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