Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-316

Enhance unit tests for batched sequence allocation

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.6.0
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 20, CBG Sprint 24
    • 8

    Description

      The enhanced sequence allocation in CBG-258 means that sequences allocated to documents in our unit tests may be non-deterministic when the tests are run under race.  Currently this is being handled by enforcing sequence allocation batch sizes of 1 in most unit tests.

      To provide better coverage of the sequence allocation changes, it would be preferable to refactor the existing tests to not rely on specific sequence values.  This includes both tests that are asserting specific sequence values in the rests, as well as tests that use waitForSequence to manage timing.

      Attachments

        Issue Links

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

          Activity

            People

              adamf Adam Fraser
              adamf Adam Fraser
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty