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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: mongodb-3.0
    • Fix Version/s: mongodb-2.6, mongodb-3.0
    • Component/s: manual
    • Labels:
      None
    • Last comment by Customer:
      true
    • Sprint:
      DOCS Current Sprint (556)

      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

            Assignee:
            kay.kim Kay Kim (Inactive)
            Reporter:
            annette.morrissey Annette Morrissey (Inactive)
            Participants:
            Last commenter:
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              6 years, 24 weeks, 1 day ago
              Date of 1st Reply: