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

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

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • mongodb-2.6, mongodb-3.0
    • Affects Version/s: mongodb-3.0
    • Component/s: manual
    • Labels:
      None

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

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

              Created:
              Updated:
              Resolved:
              8 years, 45 weeks, 1 day ago