[SERVER-3561] chunk size of 0 causes floating point exception Created: 09/Aug/11  Updated: 12/Jul/16  Resolved: 05/Oct/11

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Brandon Diamond
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-3628 can crash mongos by specifying fracti... Closed
Related
Operating System: ALL
Participants:

 Description   

To reproduce, set up a mongos, config server, and shard, set chunkSize to 0, and enable sharding on a db.

In master, caused by return rand() % ( MaxChunkSize / 5 ); in chunk.cpp: mkDataWritten()



 Comments   
Comment by Brandon Diamond [ 05/Oct/11 ]

Aborts launch with --chunksize 0 and emits warning (& ignores) when chunksize set to 0 in settings collection.

Comment by auto [ 05/Oct/11 ]

Author:

{u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}

Message: SERVER-3561: validation to avoid chunksize 0
Branch: master
https://github.com/mongodb/mongo/commit/40abbe965482c99879017472fc14b458c3218897

Generated at Thu Feb 08 03:03:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.