[DOCS-5721] For Active Balancer Window highlight the parameters of the 24 hour clock. Created: 25/Jun/15  Updated: 25/Jun/15  Resolved: 25/Jun/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: mongodb-3.0
Fix Version/s: mongodb-2.6, mongodb-3.0

Type: Improvement Priority: Major - P3
Reporter: Annette Morrissey (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:
Days since reply: 8 years, 33 weeks, 6 days ago

 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;
    }



 Comments   
Comment by Githook User [ 25/Jun/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5721 clarify balancer window time values
Branch: master
https://github.com/mongodb/docs/commit/3e36b9785893a14fda01bf61ae6049fb1a4ad466

Comment by Githook User [ 25/Jun/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5721 clarify balancer window time values
Branch: v2.6
https://github.com/mongodb/docs/commit/073f7a86f9f9f5bc01465017f8cc47726fe5f71f

Generated at Thu Feb 08 07:50:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.