Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
mongodb-3.0
-
None
-
DOCS Current Sprint (556)
-
true
Description
http://docs.mongodb.org/manual/tutorial/manage-sharded-cluster-balancer/
If you enter "24:00" as a start or stop time you get an error like this:
2015-06-22T19:02:39.891+0530 [Balancer] warning: cannot parse active window (use hh:mm 24hs format): { start: "5:00", stop: "24:00" }
|
In this instance the issue is not the format of the command - the problem is that 24:00 is not a valid time. Hours run from 00 -> 23 in the 24 hour clock.
Can we either add a note in the docs to clarify the valid parameters, or update the error message in the code?
// check that both 'start' and 'stop' are valid time-of-day
|
boost::posix_time::ptime startTime, stopTime;
|
if ( !toPointInTime( start , &startTime ) || !toPointInTime( stop , &stopTime ) ) {
|
*errMsg = stream() << balancerActiveWindow.name() <<
|
" format is { start: \"hh:mm\" , stop: \"hh:mm\" }";
|
return false;
|
}
|