Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5721

For Active Balancer Window highlight the parameters of the 24 hour clock.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • mongodb-3.0
    • mongodb-2.6, mongodb-3.0
    • manual
    • 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;
          }
      

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            annette.morrissey@mongodb.com Annette Morrissey (Inactive)
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 16 weeks ago