Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-61219

[CBBS] Merges in daily plan have incorrect offset end

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 7.6.3
    • 7.6.0, 7.2.0, 7.6.2, 7.6.1
    • tools
    • None
    • 0
    • No

    Description

      What's the issue?
      Merges in the daily backup plan have an offset end of 7 days and triggered on sunday:

                  {
                      Name:     "merge_week",
                      TaskType: MERGE,
                      Schedule: ScheduleDefinition{
                          JobType:   MERGE,
                          Frequency: 1,
                          Period:    "SUNDAY",
                          Time:      "23:20",
                      },
                      // merge last 7 days
                      Options: &MergeOptions{
                          OffsetEnd: 7,
                      },
                  },
       

      According to the documentation, the Sunday is day 0 and is included in the merge. This will result in the merge range to be Sunday - Sunday rather than Monday - Sunday. 

      The fix:

      Change the OffsetEnd to 6 instead.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owend Daniel Owen
            Nour.Elmenyawi Nour Elmenyawi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty