Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBG-3764 update base implementation of XDCR in rosmar #6746

Closed
wants to merge 349 commits into from
Closed
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Aug 23, 2023

  1. CBG-3315: Add /_ping healthcheck API (#6375)

    * Refactor makeHandler functions to use handlerOptions
    
    * Add /_ping API endpoint and silent handler functionality
    
    * Add API docs for /_ping
    
    * Publicly accessible and declare on metric router
    
    * Add test
    
    * Skip writing response body when request method is HEAD (RFC-9110)
    
    * Only honor handler's requested log level if the request was successful
    bbrks authored Aug 23, 2023
    Configuration menu
    Copy the full SHA
    b9a8ea2 View commit details
    Browse the repository at this point in the history
  2. CBG-3273: Fix revocation feed loop (#6378)

    * Add TestRevocationsWithQueryLimit2Channels and fix loop
    
    * Move lastSeq assignment before inner loop
    mohammed-madi authored Aug 23, 2023
    Configuration menu
    Copy the full SHA
    d1898fd View commit details
    Browse the repository at this point in the history
  3. Avoid a data race on writing db.PurgeInterval during test (#6363)

    * Avoid a data race on writing db.PurgeInterval during test
    
    allow specifying PurgeInterval in DatabaseContextOptions to override
    the value we might return from the server.
    torcolvin authored Aug 23, 2023
    Configuration menu
    Copy the full SHA
    18f7420 View commit details
    Browse the repository at this point in the history
  4. CBG-2455 fix race detector issue (#6380)

    err was shadowed inside a goroutine, added scoping when available
    torcolvin authored Aug 23, 2023
    Configuration menu
    Copy the full SHA
    36cf9a8 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. CBG-3316: Silence metrics requests (#6376)

    * Silence metrics requests
    
    * Lower log level of successful admin auth and 'Recording snapshot of current debug variables' message
    bbrks authored Aug 24, 2023
    Configuration menu
    Copy the full SHA
    a3f83b5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c585e48 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a45339d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5288dbf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    aff7f54 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3b3d1a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. CBG-3274: Pass context into Query/channel cache/Changes (#6384)

    * Pass context into Query
    
    * Pass context into changes/channel cache
    
    * Fix missing ctx param in test ExplainQuery
    
    * Remove loggingCtx to force caller to pass a context and add context for test functions
    
    * Only Flush on gocb buckets
    
    ---------
    
    Co-authored-by: Tor Colvin <[email protected]>
    bbrks and torcolvin authored Aug 28, 2023
    Configuration menu
    Copy the full SHA
    db4b182 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. Configuration menu
    Copy the full SHA
    9c7cad0 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. CBG-3283 Restore 3.0.x read buffer size for cbgt (#6386)

    Restores the 3.0.x read buffer size, to avoid memory growth in 3.1.1 associated with cbgt/import.
    adamcfraser authored Aug 30, 2023
    Configuration menu
    Copy the full SHA
    ca81fa7 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Make SubdocXattrStore work with Rosmar collections (#6374)

    * Make SubdocXattrStore work with Rosmar collections
    
    * There's a new interface sgbucket.XattrStore2 that contains the
      methods of SubdocXattrStore that aren't redundant.
    * rosmar.Collection implements XattrStore2.
    * LeakyDataStore now implements SubdocXattrStore; the methods are
      either delegated to their existing DataStore counterparts, or to
      the new methods from XattrStore2.
    * AsSubdocXattrStore() isn't needed anymore, because LeakyDataStore
      now implements SubdocXattrStore.
    * Removed obsolete TestRequiresSubdocXattrStore()
    snej authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    2689cf8 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Create 3.0.8.2 branch (#6389)

    Co-authored-by: Ben Brooks <[email protected]>
    torcolvin and bbrks authored Sep 6, 2023
    Configuration menu
    Copy the full SHA
    9290abe View commit details
    Browse the repository at this point in the history
  2. CBG-3352 remove invalid entries from revcache (#6390)

    * CBG-3352 remove invalidation, just remove data from cache
    
    * Fix fieldalignment on structs
    torcolvin authored Sep 6, 2023
    Configuration menu
    Copy the full SHA
    246fde2 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. Configuration menu
    Copy the full SHA
    8f49e36 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c23519 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf74d2e View commit details
    Browse the repository at this point in the history
  4. CBG-3352 switch Invalidate to Remove (#6399)

    - drop a lock by not checking the value before we remove it from the
      cache.
    - switched name from Invalidate to Remove for clarity
    torcolvin authored Sep 7, 2023
    Configuration menu
    Copy the full SHA
    94071f8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    132ec4e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2bde1ea View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. Configuration menu
    Copy the full SHA
    c660b5a View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. Configuration menu
    Copy the full SHA
    3f1c066 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5b25c3 View commit details
    Browse the repository at this point in the history
  3. CBG-3292: Handling for corrupt db config (#6377)

    * CBG-3292: force config update on corrupt db config
    gregns1 authored Sep 11, 2023
    Configuration menu
    Copy the full SHA
    b35e52e View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. Configuration menu
    Copy the full SHA
    e823439 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. Update XattrStore, remove subdocXattrStore (#6412)

    * Update XattrStore, remove subdocXattrStore
    
    Remove subdocXattrStore (previously used to support working with multiple gocb versions), moving required functions not already included in XattrStore into XattrStore.
    adamcfraser authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    a76bb57 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14c0eb9 View commit details
    Browse the repository at this point in the history
  3. CBG-3379 add missing context logging (#6408)

    Co-authored-by: Ben Brooks <[email protected]>
    torcolvin and bbrks authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    2da8f9c View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Configuration menu
    Copy the full SHA
    b32b61c View commit details
    Browse the repository at this point in the history
  2. CBG-3277 add a stat for mismatched bucket names in dbconfigs (#6410)

    * CBG-3277 add a stat for mismatched bucket names in dbconfigs
    
    * fix panic if bootstrap polling removes a database in memory while a REST API call is happening
    torcolvin authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    f761691 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. Configuration menu
    Copy the full SHA
    885ce22 View commit details
    Browse the repository at this point in the history
  2. Proposal: Bump all dependencies to latest versions (#6398)

    * Bump all other (non /x/crypto)  dependencies to latest versions
    * Roll back keep otto at the old version
    bbrks authored Sep 18, 2023
    Configuration menu
    Copy the full SHA
    741ee31 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. CBG-3385: link up the reset resync code to the api for a user to use (#…

    …6430)
    
    * CBG-3385: link up the reset resync code to the api for a user to use
    
    * changes to open api docs to reflect change
    
    * fix type error on open api docs
    gregns1 authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    6fc4fe4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b8fcf9e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    99f4522 View commit details
    Browse the repository at this point in the history
  4. Reenable TestMultiCollectionDCP and fix (#6431)

    * Reenable TestMultiCollectionDCP and fix
    bbrks authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    39b4659 View commit details
    Browse the repository at this point in the history
  5. CBG-3379 add contexts for logging in interfaces that are supplied by …

    …sg-bucket (#6422)
    
    * ctx
    
    * Update with sg-bucket changes
    
    * Add dcp
    
    * update go.mod
    
    * Use context that doesn't go out of scope
    
    * fix ctx
    
    * go mod tidy
    
    * amend comment
    
    * Use correct ctx
    
    * update rosmar and sg-bucket
    
    * simplify context in dcp feed
    
    * Update rosmar go.mod
    torcolvin authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    633580b View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Configuration menu
    Copy the full SHA
    10882cd View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. Configuration menu
    Copy the full SHA
    b97d25d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f098de5 View commit details
    Browse the repository at this point in the history
  3. CBG-3378 Switch some Debug statements to Info (#6423)

    Co-authored-by: Ben Brooks <[email protected]>
    torcolvin and bbrks authored Sep 21, 2023
    Configuration menu
    Copy the full SHA
    bd6c27f View commit details
    Browse the repository at this point in the history
  4. CBG-3164: fix for flake where grant for channel was after the current…

    … sequence at the cache causing changes feed to not pick the update up. Changed the changes call to use request plus and also disable sequence batching to allow asertions on sequences to hold true (#6443)
    gregns1 authored Sep 21, 2023
    Configuration menu
    Copy the full SHA
    d31af1f View commit details
    Browse the repository at this point in the history
  5. CBG-3291 Define macro expansion in MutateInOpts (#6419)

    * Rebase on master
    
    * go.mod bump for merged dependencies
    
    * CBG-3291 Define macro expansion in MutateInOpts
    
    Uptake sg-bucket changes to pass macro expansions for a given operation to the XattrStore implementation (*Collection), instead of hardcoding in the low-level subdoc operations.
    
    The macro expansion options are set in three places for non-test code:
    - updateAndReturnDoc, handles standard writes/imports via WriteUpdateWithXattr
    - migrateMetadata, performs migration via WriteWithXattr
    - resyncDocument, uses WriteUpdateWithXattr (different retry than updateAndReturnDoc)
    
    Prerequisite for the expanded use of macro expansion for HLV properties.
    
    Also includes some cleanup of the XattrStore interface to remove internal-only operations.
    
    * Integration test fixes
    
    * Fix attachment test
    
    * PR suggestions/fixes
    
    * Update dependencies
    adamcfraser authored Sep 21, 2023
    Configuration menu
    Copy the full SHA
    25fc3c5 View commit details
    Browse the repository at this point in the history
  6. CBG-3238 perform a length check on raw bytes (#6438)

    * CBG-3238 perform a length check on raw bytes
    
    - refactor attachment compaction tests so we can make sure that it doesn't terminate
    
    * Add comment
    
    * remove redundant returns
    
    * Move error handling into getAttachmentSyncData
    
    * PR fixup
    
    - remove attachment compaction changes and leave only a change to avoid
      failure to mark changes if xattr length is invalid. Treat this as a
      document without xattrs in order to not fail attachment compaction
      test.
    - add code to prevent overflow if xattr len is a number between 1-4
      which would cause a panic.
    
    * Update tests
    
    * remove test tested in separate function
    torcolvin authored Sep 21, 2023
    Configuration menu
    Copy the full SHA
    e9b9618 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. Configuration menu
    Copy the full SHA
    91a1cb3 View commit details
    Browse the repository at this point in the history
  2. Add dependabot module updates (#6444)

    * Add dependabot module updates
    
    Using this as a mechanism to at least give us notifications and streamline module updates.
    
    Dependabot will open a PR for any upstream module updates.
    We can choose whether to merge them or close them.
    
    * Add license
    bbrks authored Sep 22, 2023
    Configuration menu
    Copy the full SHA
    0b90e55 View commit details
    Browse the repository at this point in the history
  3. Update dependabot.yml

    bbrks authored Sep 22, 2023
    Configuration menu
    Copy the full SHA
    4194409 View commit details
    Browse the repository at this point in the history
  4. Update dependabot.yml

    bbrks authored Sep 22, 2023
    Configuration menu
    Copy the full SHA
    9ffcf8b View commit details
    Browse the repository at this point in the history
  5. Update dependabot.yml

    bbrks authored Sep 22, 2023
    Configuration menu
    Copy the full SHA
    e436c73 View commit details
    Browse the repository at this point in the history
  6. Redo module updates (#6453)

    bbrks authored Sep 22, 2023
    Configuration menu
    Copy the full SHA
    14d2987 View commit details
    Browse the repository at this point in the history
  7. CBG-3394 don't panic if user is deleted with active blip replication (#…

    …6445)
    
    * CBG-3394 don't panic if user is deleted with active blip replication
    * Return 503 on user reload failures
    torcolvin authored Sep 22, 2023
    Configuration menu
    Copy the full SHA
    ac740e8 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Additional defensive checks in UpdateCalculatedStats (#6457)

    The previous changes to changeCache.updateStats() guard against an nil db inside that call, but don't cover nil channelCache.
    
    We shouldn't hit the nil db and DbStats cases, but added these for additional protection in case of unexpected interactions with sc.logStats.
    adamcfraser authored Sep 25, 2023
    Configuration menu
    Copy the full SHA
    9384a7b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    626b62e View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

  1. Configuration menu
    Copy the full SHA
    6bf6190 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4987aa6 View commit details
    Browse the repository at this point in the history
  3. CBG-2579: TestReplicatorCheckpointOnStop test fix (#6460)

    * CBG-2579: update to actually reduce the checkpoint interval. Comment suggested disabling the checkpoint interval which is not what the test is doing
    
    * updates to increase checkpoint interval
    
    * temp enable trace loging
    
    * updates to add trace logging to enable us to debug further
    
    * fix comment
    gregns1 authored Sep 26, 2023
    Configuration menu
    Copy the full SHA
    408b47e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1a2b934 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f7b2ac8 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. CBG-3399: TestUserXattrDeleteWithRevCache flake fix (#6451)

    * CBG-3399: bump up import partitions on rest tester as just having 1 killed the import feed when having multiple nodes sometimes
    gregns1 authored Sep 27, 2023
    Configuration menu
    Copy the full SHA
    b025adf View commit details
    Browse the repository at this point in the history
  2. CBG-3453: Per-db log settings should take precedence over bootstrap (#…

    …6472)
    
    * Database console log setting takes precedence over console log setting, if set...
    
    * Reword deprecated logging endpoint warning log
    
    * Fix G601: Implicit memory aliasing in for loop. (gosec)
    
    * Add test to cover combining console and db log config for shouldLog
    bbrks authored Sep 27, 2023
    Configuration menu
    Copy the full SHA
    d0c71ac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    621641f View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2023

  1. CBG-3395: pick up gocbcore patch for boostrap against non KV node (#6475

    )
    
    * CBG-3395: pick up gocbcore patch for boostrap against non KV node
    
    * uptake new gocb release too
    
    * go mod tidy
    gregns1 authored Sep 28, 2023
    Configuration menu
    Copy the full SHA
    ff0b88f View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. Configuration menu
    Copy the full SHA
    1d5b909 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff3e1a0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3b6787a View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. CBG-3449 Ensure metadata persistence on rollback (#6471)

    * CBG-3449 Ensure metadata persistence on rollback
    
    Adds a mustPersist option to setMeta to ensure persistence during rollback.
    
    setMeta also returns error if checkpoint persistence fails (e.g. transient server error).  This error is ignored during normal checkpointing, but is returned by the Rollback/RollbackEx implementations.
    adamcfraser authored Oct 2, 2023
    Configuration menu
    Copy the full SHA
    8a59a82 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c028acc View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Configuration menu
    Copy the full SHA
    2a9ed02 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89e0d26 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8549699 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. Configuration menu
    Copy the full SHA
    27aff8f View commit details
    Browse the repository at this point in the history
  2. CBG-3464 Delete legacy config when migrated config already exists (#6480

    )
    
    * CBG-3461 Delete legacy config when migrated config already exists
    
    In the case where a 3.1 version of the config exists, delete duplicate 3.0 config if found with matching database and config group.
    adamcfraser authored Oct 4, 2023
    Configuration menu
    Copy the full SHA
    3ec4e7a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    12f484d View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. Configuration menu
    Copy the full SHA
    ea958eb View commit details
    Browse the repository at this point in the history
  2. CBG-3507: Add unsupported.allow_dbconfig_env_vars (#6496)

    * Add unsupported.disallow_dbconfig_env_vars to opt out of db config env var expansion
    
    * Add test for DisallowDbConfigEnvVars coverage
    
    * Flip bool (default to true)
    bbrks authored Oct 5, 2023
    Configuration menu
    Copy the full SHA
    ce51e97 View commit details
    Browse the repository at this point in the history
  3. CBG-3445 prevent N-1 downgrades by stamping db version into gateway r…

    …egistry (#6486)
    
    * CBG-3445 stamp db version into gateway registry
    
    - update gateway registry on startup to include new version numbers
    - ensure that a database is not loaded if is more than a minor version upgrade
    
    Improvements to ComparableVersion
    
    - make copyable so that you can't pass a nil version by mistake
    - change String() method to be a non pointer method to avoid mishaps if you don't print a pointer.
    torcolvin authored Oct 5, 2023
    Configuration menu
    Copy the full SHA
    7908d3c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cf8c3a4 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

  1. Configuration menu
    Copy the full SHA
    d183dbe View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. Configuration menu
    Copy the full SHA
    f0aff4e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9cc10c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e1bf484 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e3bb61d View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. Configuration menu
    Copy the full SHA
    e5a3b53 View commit details
    Browse the repository at this point in the history
  2. CBG-3464 Update TestMigratev30PersistentConfigCollision based on chan…

    …ges to delete handling (#6513)
    
    * CBG-3646 Update TestMigratev30PersistentConfigCollision based on changes to delete handling
    
    migrateV30Configs no longer terminates and returns error on migrate failure for a single bucket - it instead logs the error and continues through the rest of the bucket.
    
    * Avoid race in TestCorruptDbConfigHandling
    adamcfraser authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    7816dc7 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Configuration menu
    Copy the full SHA
    2e5a4cb View commit details
    Browse the repository at this point in the history
  2. Fix data race in AssertLogContains and functional race in TestDocChan…

    …gedLogging (#6517)
    
    * Fix race in AssertLogContains by forcing console log buffer flush before checking contents - avoids multiple buffer reads during log writes
    * Fix TestDocChangedLogging test race
    bbrks authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    a142ec8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    53fafa8 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2023

  1. Configuration menu
    Copy the full SHA
    d2d9387 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78dbfe9 View commit details
    Browse the repository at this point in the history
  3. CBG-3518 flush the log buffers collateBuffer is enabled (#6523)

    * CBG-3518 flush the log buffers collateBuffer is enabled
    * Remove warning count assertion since warnings can come through from DCP mutations from previous tests
    * Update the assertion to use testify contains
    torcolvin authored Oct 13, 2023
    Configuration menu
    Copy the full SHA
    70b1825 View commit details
    Browse the repository at this point in the history
  4. CBG-3522 add collection to import feed logic (#6518)

    * CBG-3522 add collection to import feed logic
    
    * Use a ptr, update documentation, fix return value
    torcolvin authored Oct 13, 2023
    Configuration menu
    Copy the full SHA
    a85c1da View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6537f43 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e768d62 View commit details
    Browse the repository at this point in the history
  7. CBG-3384 Avoid triggering unnecessary resync when working with defaul…

    …t collection (#6504)
    
    * CBG-3384 Modify computation of metadataID
    
    - Don’t persist syncInfo for empty metadataID (legacy config)
    - Modify requirements for assignment of default metadata ID to a database:
    1. Remove requirement for presence of _sync:seq in default collection
    2. Allow assignment when default collection’s syncInfo is using defaultMetadataID
    
    These avoid triggering resync for databases using only the default collection, in legacy and non-legacy mode.
    
    If database already exists in registry, new databases (in different config groups) should use the same metadataID.
    adamcfraser authored Oct 13, 2023
    Configuration menu
    Copy the full SHA
    03794e0 View commit details
    Browse the repository at this point in the history
  8. CBG-3533 remove implicit default of http console logging (#6530)

    * CBG-3533 remove implicit default of http console logging
    * Turn back on HTTP logging for tests
    
    Allows not streaming any logs (including HTTP logs) on capella.
    torcolvin authored Oct 13, 2023
    Configuration menu
    Copy the full SHA
    0e8dd17 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. Configuration menu
    Copy the full SHA
    ae41dc8 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. Configuration menu
    Copy the full SHA
    d41b0d2 View commit details
    Browse the repository at this point in the history
  2. CBG-3498 create function NewRestTesterPersistentConfig (#6511)

    * CBG-3498 create function NewRestTesterPersistentConfig
    
    NewRestTesterPersistentConfig will create a RestTester with peristent
    config and start up a database. This differs from setting
    RestTesterConfig{Persistent: true} in that the database is created for
    you. I didn't allow passing configuration options, since I am not sure
    all of them work with Persistent: true.
    
    Migrate many uses of creating ServerContext directly to RestTester which
    makes the tests collection-aware and often runnable under rosmar.
    torcolvin authored Oct 18, 2023
    Configuration menu
    Copy the full SHA
    ee61916 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. Configuration menu
    Copy the full SHA
    2a2d835 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3472260 View commit details
    Browse the repository at this point in the history
  3. CBG-3268 Create DocVersion to replace RevID in test to make HLV aware (

    …#6535)
    
    * Create type DocVersion which will allow using HLV or RevID
    * Create helper functions to use with DocVersion instead of RevIDs
    torcolvin authored Oct 19, 2023
    Configuration menu
    Copy the full SHA
    a687eb1 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. CBG-3553 add bucket.Close() when opening the database (#6546)

    * CBG-3553 add bucket.Close() when opening the database
    
    - close the DatabaseContext if it's not managed by the database if it hasn't been added to
    - changed newSequenceAllocator to not leak a goroutine
    
    * Don't create db automatically
    
    * Improve error message
    
    * Don't close dbcontext if already registered
    
    * Remove test which did not test anything
    torcolvin authored Oct 23, 2023
    Configuration menu
    Copy the full SHA
    5ef676e View commit details
    Browse the repository at this point in the history
  2. CBG-3516 Implement nextSequenceGreaterThan to reduce incr and unused …

    …seq traffic (#6547)
    
    Co-authored-by: Ben Brooks <[email protected]>
    adamcfraser and bbrks authored Oct 23, 2023
    Configuration menu
    Copy the full SHA
    20e5e47 View commit details
    Browse the repository at this point in the history
  3. CBG-3268 modify attachment_test.go to remove rev (#6543)

    * CBG-3268 modify attachment_test.go to remove rev
    
    * Restore interface as PushVersion
    
    * Add missing wg.Add
    torcolvin authored Oct 23, 2023
    Configuration menu
    Copy the full SHA
    61a63e3 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. makes golangci-lint more strict (#6507)

    * Enable unconvert
    * Enable unused code check
    torcolvin authored Oct 24, 2023
    Configuration menu
    Copy the full SHA
    343f8d4 View commit details
    Browse the repository at this point in the history
  2. CBG-3559: Inherited channels from roles are not checked when running …

    …changes feed filtered to a channel (#6551)
    
    * CBG-3559: ensure we check inherited channels across assigned roles when filtering the changes feed to availible channels to the user
    
    * chnage implementation, add userImpl canSeeCollectionChannelSince
    
    * remove unused function
    gregns1 authored Oct 24, 2023
    Configuration menu
    Copy the full SHA
    a599119 View commit details
    Browse the repository at this point in the history
  3. Skip all import tests when running without xattrs (#6545)

    - move specific tests in import_test.go to xattr_upgrade_test.go since
      they are specifically needed only when doing a rolling upgrade from
      inline -> xattr metadata
    torcolvin authored Oct 24, 2023
    Configuration menu
    Copy the full SHA
    2e1590a View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. Configuration menu
    Copy the full SHA
    acc14a3 View commit details
    Browse the repository at this point in the history
  2. Use newer version of golanci-lint to allow using standard library sli…

    …ces (#6555)
    
    - update go.mod and ci to make sure that go-1.21.3 is used
    torcolvin authored Oct 25, 2023
    Configuration menu
    Copy the full SHA
    ca0846c View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Configuration menu
    Copy the full SHA
    aa4fcc1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b286bb View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. CBG-3268 replace WaitForRev with WaitForVersion (#6554)

    * CBG-3268 replace WaitForRev with WaitForVersion
    torcolvin authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    9ea438d View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. CBG-3268 remove RespRevID and prepare for HLV aware testing (#6560)

    * CBG-3268 remove RespRevID and prepare for HLV aware testing
    torcolvin authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    b8ba7f1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69ea24b View commit details
    Browse the repository at this point in the history
  3. CBG-3577 Uptake cbgt fix for MB-59249 (#6562)

    * CBG-3577 Uptake cbgt fix for MB-59249
    
    Includes new unit test that reproduced the issue being fixed.
    
    * PR review fixes
    adamcfraser authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    1bef056 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2023

  1. Configuration menu
    Copy the full SHA
    e8f9645 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9033a3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9daa699 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2023

  1. Configuration menu
    Copy the full SHA
    2fe011c View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. Configuration menu
    Copy the full SHA
    4508380 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6323ac9 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2023

  1. CBG-3576: BlipTestClient support for HLV and rev tree modes (#6567)

    * CBG-3210: Updating HLV on Put And PutExistingRev (#6366)
    
    * CBG-3209: Add cv index and retrieval for revision cache (#6491)
    
    * CBG-3209: changes for retreival of a doc from the rev cache via CV with backwards compatability in mind
    
    * fix failing test, add commnets
    
    * fix lint
    
    * updated to address comments
    
    * rebase chnages needed
    
    * updated to tests that call Get on revision cache
    
    * updates based of new direction with PR + addressing comments
    
    * updated to fix panic
    
    * updated to fix another panic
    
    * address comments
    
    * updates based off commnets
    
    * remove commnented out line
    
    * updates to skip test relying on import and update PutExistingRev doc update type to update HLV
    
    * updates to remove code adding rev id to value inside addToRevMapPostLoad. Added code to assign this inside value.store
    
    * remove redundent code
    
    * CBG-3210: Updating HLV on Put And PutExistingRev (#6366)
    
    * CBG-3209: Add cv index and retrieval for revision cache (#6491)
    
    * CBG-3209: changes for retreival of a doc from the rev cache via CV with backwards compatability in mind
    
    * fix failing test, add commnets
    
    * fix lint
    
    * updated to address comments
    
    * rebase chnages needed
    
    * updated to tests that call Get on revision cache
    
    * updates based of new direction with PR + addressing comments
    
    * updated to fix panic
    
    * updated to fix another panic
    
    * address comments
    
    * updates based off commnets
    
    * remove commnented out line
    
    * updates to skip test relying on import and update PutExistingRev doc update type to update HLV
    
    * updates to remove code adding rev id to value inside addToRevMapPostLoad. Added code to assign this inside value.store
    
    * remove redundent code
    
    * CBG-3576: changes to BlipTesterClient to run with version vector subprotocol and non version vector subprotocol
    
    * updates to work with rebase changes
    
    * changes to remove repeated code, assuming from the rebase?
    
    * refactoring based off discussion with Ben
    
    * lint error fix
    gregns1 authored Nov 10, 2023
    Configuration menu
    Copy the full SHA
    a398881 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Configuration menu
    Copy the full SHA
    8fd554e View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. put lint timeout in config (#6576)

    This means it is automatically picked up by editors in addition to CI.
    Usually this is fast, but sometimes staticcheck can slow down,
    especially on mac. Once it is cached, it is quick.
    
    Updated golangci-lint version in github actions.
    torcolvin authored Nov 14, 2023
    Configuration menu
    Copy the full SHA
    1db1763 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    488fae4 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Configuration menu
    Copy the full SHA
    d75a09b View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Configuration menu
    Copy the full SHA
    5b97466 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea7eae7 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2023

  1. CBG-3271 remove persistent rosmar buckets (#6570)

    * CBG-3271 remove persistent rosmar buckets
    
    - rosmar now supports persisting in memory buckets, so keep the buckets
      in memory until the buckets are closed. This eliminates NoCloseClone
      in many cases. Another PR might be able to remove even more of these.
    - this is prep for being able to run a bootstrap connection.
    torcolvin authored Nov 17, 2023
    Configuration menu
    Copy the full SHA
    e287e05 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2023

  1. Refactor/Prereq: Numeric CBMobile BLIP Subprotocol version to allow f…

    …or `<=` and `>=` comparisons (#6582)
    
    * wip
    
    * Use updated go-blip server.WaitUntilStarted to log ws upgrade
    
    * Fix subprotocol comparison operators
    
    * Set active subprotocol version for SG-side BlipSyncContext (received blipsync requests)
    
    * Strip out CBMobile_4 subversion until VV changes are ready
    
    * addlicense
    
    * Remove unnessesary middleware function for BLIPSync
    
    * Switch to server.PostHandshakeCallback to avoid data race between blip handler and ws handshake
    
    * bump go-blip to PR commit hash
    
    * Bump go-blip for merged PR
    bbrks authored Nov 24, 2023
    Configuration menu
    Copy the full SHA
    3cec600 View commit details
    Browse the repository at this point in the history
  2. CBG-3253: Add CBMobileReplicationV4 (#6583)

    * Add CBMobileReplicationV4 const
    
    * Ensure TestAllowedAttachments works with v4 replicator version
    bbrks authored Nov 24, 2023
    Configuration menu
    Copy the full SHA
    ad74e7e View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. CBG-3615 escape sequence keyword in N1QL (#6586)

    * CBG-3615 Escape sequence keyword, pass tests with 7.6
    
    - for integration tests, allow non dockerhub images if you specify a
      path
    
    * use wildcard rather than regex
    torcolvin authored Nov 29, 2023
    Configuration menu
    Copy the full SHA
    4c00dba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c90fa7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    47cbbc8 View commit details
    Browse the repository at this point in the history
  4. CBG-3634: Fully escape JSON strings when using InjectJSONProperties (#…

    …6588)
    
    * Fully escape JSON strings when using InjectJSONProperties
    
    * Fall through to `default` case for strings, but leave warning comment to make it clear it was an intentional decision to fall through for strings.
    bbrks authored Nov 29, 2023
    Configuration menu
    Copy the full SHA
    69adee0 View commit details
    Browse the repository at this point in the history
  5. Revert "CBG-3271 update rosmar to include changes for expiry & tombst…

    …one CAS handling (#6587)" (#6591)
    
    This reverts commit 5c90fa7.
    bbrks authored Nov 29, 2023
    Configuration menu
    Copy the full SHA
    a6fe6ba View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4a1e3fd View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. Configuration menu
    Copy the full SHA
    91db64f View commit details
    Browse the repository at this point in the history
  2. Make sure GetDatabase always refers to 1 database (#6594)

    * Make sure GetDatabase always refers to 1 database
    * Avoid using GetDatabase ambiguously
    torcolvin authored Nov 30, 2023
    Configuration menu
    Copy the full SHA
    1cf9ac4 View commit details
    Browse the repository at this point in the history
  3. CBG-3271 Implement bootstrap connection for rosmar (#6584)

    - implement and start a BootstrapConnection in RestTester
    - create a new bucket object each time since it's a cheap copy option in rosmar
    
    some test fixup:
    
    - use NewDbConfig for rosmar config, which uses a peculiar combination
      of views and collections, normally disallowed
    - make some config polling faster to speed up testing
    - change some error reporting to use testify to report trace
    - fix UpdateConfig uses to set cfgCas to the previous cas value so the
      tests pass again against CBS
    
    
    Continue to skip some tests under rosmar:
    
    * Skip serverless tests that explicitly require bucket specific credentials
    * Mark tests that will race in creating http servers to be fixed in a future ticket
    torcolvin authored Nov 30, 2023
    Configuration menu
    Copy the full SHA
    349c93c View commit details
    Browse the repository at this point in the history
  4. CBG-3616 add node cpu stat (#6595)

    * CBG-3616 add node cpu stat
    torcolvin authored Nov 30, 2023
    Configuration menu
    Copy the full SHA
    db307f1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d6f0006 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d6ff0a4 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2023

  1. CBG-3612 Allow import to override existing expiry when set by Sync Fu…

    …nction (#6597)
    
    * CBG-3612 allow modifying exp in Collection.UpdatepBodyAndXattr
    
    * make sure that import will preserve expiry, and a sync function can reset the TTL
    * Update rosmar to enable BucketStoreFeaturePreserveExpiry
    * Add guardrails to make sure we can not produce programmer error about PreserveExpiry
    * Make sure that expiry is passed as nil ptr for purposes of knowing whether to update
    torcolvin authored Dec 1, 2023
    Configuration menu
    Copy the full SHA
    0024100 View commit details
    Browse the repository at this point in the history
  2. Create release/3.1.3 (#6599)

    * Create release/3.1.3
    torcolvin authored Dec 1, 2023
    Configuration menu
    Copy the full SHA
    4230375 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. Configuration menu
    Copy the full SHA
    ad26204 View commit details
    Browse the repository at this point in the history
  2. CBG-3584 Uptake cbgt fix for file system writes (#6606)

    Co-authored-by: Ben Brooks <[email protected]>
    adamcfraser and bbrks authored Dec 11, 2023
    Configuration menu
    Copy the full SHA
    053f145 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    51d1f81 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d86b47e View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. CBG-3652 check Origin header on websocket (#6610)

    * CBG-3652 check Origin header on websocket
    torcolvin authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    fc3b741 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2023

  1. CBG-3642 make sure channelCache is closed correctly in case of DCP fa…

    …ilure to start (#6611)
    
    * CBG-3642 make sure channelCache is closed correctly in case of DCP
    failure
    
    - If the mutation feed fails to start, the channelCache would be set to
    nil. Previously, this actually would leak background processes, so stop
    before setting to nil.
    - Set channelCache to nil, because the terminator is not initialized
      unless changeCache is initialized.
    
    Added validation for finding the collectionIDs in the manifest to cause
    StartDCPFeed to fail in the case of gocb (this already failed in
    rosmar).
    torcolvin authored Dec 13, 2023
    Configuration menu
    Copy the full SHA
    de85542 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2023

  1. Configuration menu
    Copy the full SHA
    e6fd3d3 View commit details
    Browse the repository at this point in the history
  2. CBG-3513: flaky test fix for TestCorruptDbConfigHandling (#6616)

    * CBG-3513: flaky test fix for TestCorruptDbConfigHandling
    gregns1 authored Dec 15, 2023
    Configuration menu
    Copy the full SHA
    defab57 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

  1. Configuration menu
    Copy the full SHA
    dad81d0 View commit details
    Browse the repository at this point in the history
  2. Update golang.org/x/crypto to v0.17.0 (#6618)

    Fixes CVE-2023-48795 which does not affect SG since it requires ssh
    library.
    torcolvin authored Dec 19, 2023
    Configuration menu
    Copy the full SHA
    74c5fea View commit details
    Browse the repository at this point in the history
  3. Remove logging due to potential Start/Stop race condition (#6620)

    * Add lock around logging due to potential Start/Stop race condition
    
    * Drop logging to avoid data race
    torcolvin authored Dec 19, 2023
    Configuration menu
    Copy the full SHA
    b3d3dfd View commit details
    Browse the repository at this point in the history
  4. CBD-5711: Update 'build' SHA in 3.2.0 manifest (#6617)

    Brings in change to sort metrics_metadata.json content.
    ceejatec authored Dec 19, 2023
    Configuration menu
    Copy the full SHA
    66c0c2e View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2023

  1. Configuration menu
    Copy the full SHA
    064ccb6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df5b764 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2023

  1. make resync tests run / delete irrelevant ones (#6619)

    - resync tests asserted that they were running a specific instance of
      db.ResyncManager or db.ResyncManagerDCP. This is controlled by an
      unsupported database setting, so set the database setting where
      required, and delete the tests that have duplicate coverage.
    torcolvin authored Dec 21, 2023
    Configuration menu
    Copy the full SHA
    0b60724 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2024

  1. Show documents that might be around after N1QL emptying fails (#6624)

    * Show documents that might be around after N1QL emptying fails, useful for debugging test failures
    torcolvin authored Jan 2, 2024
    Configuration menu
    Copy the full SHA
    bea26ef View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. CBG-3696: Allow user_xattr_key to be removed with an empty-string POS…

    …T/upsert (#6627)
    
    * Allow user_xattr_key to be removed with an empty-string POST/upsert
    
    * Move user xattr tests into their own package and organise by functionality
    
    * Add new TestUserXattrSetUnsetDBConfig test for empty string POST/Upsert and nil on PUT
    
    * Run addlicense
    
    * Force new test to run with persistent config
    
    * Address PR comments
    bbrks authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    03fc9fc View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. Configuration menu
    Copy the full SHA
    c57e4d0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    025d0ce View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. CBG_3645 Prereq: don't override http.DefaultClient (#6631)

    Setting http.DefaultClient.Jar would cause anything that ran after it
    to authenticate with this session token. In practice, this happens for
    blip tests becuase they use guest access and the flow is:
    
    - check basic auth
    - check session
    - check guest access
    
    To be safe, I switched places that use http.DefaultClient as a global in
    anything other than read-only to use http.Client{} explicitly.
    torcolvin authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    8622d99 View commit details
    Browse the repository at this point in the history
  2. CBG-3638 make BootstrapStartupConfigForTest parallel safe (#6622)

    * CBG-3638 make BootstrapStartupConfigForTest parallel
    
    Previous to this commit, tests that used BootstrapStartupConfigForTest would
    start a real web server that listened on fixed ports: 14984, 14985, 14986. This
    worked fine for integration test runs with Couchbase Server, since they
    have to be run with `go test -p 1` because of limitations of the amount
    of churning the bucket pool does. This limitation does not apply to
    rosmar. If two packages were running tests simultaneously, this would
    error.
    
    BootstrapStartupConfigForTest now creates servers on :0, and there is a
    test API for looking up the address of the listener.
    
    Allow BootstrapStartupConfigForTest to work for CE edition without
    GroupID when it is not necessary, so the tests work on github. In the
    case of a bucket pool backed by CBS, these require a unique groupID
    since even a tombstoned config will be read. In rosmar, the buckets are
    dropped between each test so this isn't a concern. The motivation for
    this is to run more tests in GH actions.
    
    * Have test use bootstrap server methods
    torcolvin authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    bd7e4f6 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. CBG-3701 lock on RegisterImportPindexImpl (#6634)

    This causes a race condition in the instance that two databases with
    the same config group are created simultaneously. An example of how this
    can happen is:
    
    - config polling to pick up a db config A
    - GET /dbA/
    
    The second will independently attempt to load the configuration while
    the first is running. In theory, this could happen for any different
    database in step 2, since all databases will be in the same
    group id.
    torcolvin authored Jan 9, 2024
    Configuration menu
    Copy the full SHA
    9ac976b View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. Configuration menu
    Copy the full SHA
    ac8c7ae View commit details
    Browse the repository at this point in the history
  2. CBG-3700 fix race conditions in server setup (#6633)

    - each ServerContext will reset the global logger. Only reset the global logging once per execution of the program, to simulate what happens in mane.
    - dbReplicatorStats map can be accessed simultaneously by SGReplicateMgr and when it is explicitly called in the test.
    - Mutex RegisterImportPindexImpl which was unsynchronized when multiple calls to NewDatabaseContext happen simultaneously.
    torcolvin authored Jan 10, 2024
    Configuration menu
    Copy the full SHA
    2e37dac View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2024

  1. Configuration menu
    Copy the full SHA
    d3cda06 View commit details
    Browse the repository at this point in the history
  2. CBG-3697 make sure on demand import errors show up as 404 (#6637)

    * write test
    
    * Change validation
    
    * CBG-3697 make sure on demand import errors show up as 404
    
    - The result of this is that blip will send a NoRev message since this
    revision is not accessible.
    
    - Delete validation in validateImportBody rather than change the type to
      report 404 since the only caller does not pass a nil pointer into this
      function.
    torcolvin authored Jan 11, 2024
    Configuration menu
    Copy the full SHA
    444f9b1 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2024

  1. Configuration menu
    Copy the full SHA
    57f5801 View commit details
    Browse the repository at this point in the history
  2. CBG-3695 implement Couchbase Server bucket to bucket XDCR (#6628)

    - Create a basic Replication interface to be matched in rosmar
    torcolvin authored Jan 12, 2024
    Configuration menu
    Copy the full SHA
    be6f58c View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. Linting: Add ruleguard rule for logging errors with %w (suggest `%s…

    …` or `%v`) (#6636)
    
    * Add ruleguard rule for Sync Gateway logging format containing Go error wrapping verb (%w)
    
    * nolint:unused in ruleguard file
    
    * simplify rule (ignore error type - add test file)
    
    * nolint test files
    
    * run ruleguard
    
    * Re-enable all gocritic linters in non-strict lint config
    
    * Remove old comment and add testing.T methods
    
    * Test testing.T
    
    * Add tests for Fatalf/Errorf/Skipf
    bbrks authored Jan 17, 2024
    Configuration menu
    Copy the full SHA
    49f66ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76fd8bf View commit details
    Browse the repository at this point in the history
  3. CBG-3645: Shuffle tests (#6632)

    * Shuffle tests
    
    * Make TestSetRedaction clean up after itself
    
    * Drop shuffled runs on integration tests
    bbrks authored Jan 17, 2024
    Configuration menu
    Copy the full SHA
    a8c34c3 View commit details
    Browse the repository at this point in the history
  4. lint: gocritic: Enable ruleguard for non-strict lint config (#6645)

    * lint: gocritic: Enable ruleguard (have to explicitly define default enabled rules)
    
    * Fix unused queryCloseErr
    
    * Fix unused meta var in TestIndexMeta
    
    * Re-enable tests for CBG-755 / MB-37622
    bbrks authored Jan 17, 2024
    Configuration menu
    Copy the full SHA
    df6bbda View commit details
    Browse the repository at this point in the history
  5. CBG-3686 add idle kv ops stat (#6642)

    * CBG-3686 add idle kv ops stat
    
    * Move stats to after read/write operation.
    
    Remove unused stat for CfgSG.
    Add docs
    torcolvin authored Jan 17, 2024
    Configuration menu
    Copy the full SHA
    87cca79 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. implement body.Close checker (#6646)

    * implement body.Close
    
    * Add some missing asserts, simplify MakeUser
    
    * add missing error check
    torcolvin authored Jan 19, 2024
    Configuration menu
    Copy the full SHA
    d00d704 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    05a8a2c View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Configuration menu
    Copy the full SHA
    9cc37dd View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2024

  1. Allow go mod tidy (#6652)

    * Run go.mod tidy
    
    * Add tools file to prevent go-ruleguard from being declared an indirect depenency
    torcolvin authored Jan 24, 2024
    Configuration menu
    Copy the full SHA
    c0f8532 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Configuration menu
    Copy the full SHA
    b0114a4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11d2f09 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    772c33c View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2024

  1. CBG-3724 ensure import rollback works correctly (#6657)

    * CBG-3724 ensure import rollback works correctly
    
    Major fix: pass a function to call cbgt.JANITOR_ROLLBACK_PINDEX when
    creating a pindex. This is necessary to ensure cbgt.Mgr will actually
    generate the index.
    
    - fix the TestImportRollback test which was giving a false pass before
      because the cbgt.Mgr was getting a kick op when the nodes were
      rebalanced. In order for rollback to work, the cbgt.Dest RollbackEx
      function has to force cgbt.Mgr to actually update the PIndex. A
      cbgt.JANITOR_ROLLBACK_PINDEX op will force the recreation of a PIndex.
      This test was broken before adding code to it.
    - Enhance the TestImportRollback to detect a rollback with invalid FailoverLogs.
      This simulates a situation where the checkpoints have been migrated
      from a separate bucket.
    
    - modify TestContinuousRollback to also test with bad vbuuid FailoverEntry.
      This test actually would pass, because Sync Gateway, unlike cbgt, did
      not pass DcpStreamAddFlagStrictVBUUID. DcpStreamAddFlagStrictVBUUID
      forces a rollback in the case where StartSeqNo=0 vbuuid=invalid
      whereas without the flag it is treated like StartSeqNo=0 vbuuid=0.
      Changed the code to match cbgt behavior adding
      DcpStreamAddFlagStrictVBUUID.
    - Added a separate flag in DCPClient to detect active vBuckets, which
      are the number of vBuckets that actually have a connection, and are
      not stuck in a connecting state. This differs from the existing
      activeVbuckets which is set from the time of NewDCPClient to when the
      streams end. In a continuous feed, the streams should never end.
    
    Cleanup:
    
    - move RollbackEx function from DCPDest to DCPCommon. DCPCommon is an
      embedded struct in DCPDest.
    - panic if DCPCommon.Rollback is called. This should never happen given
      the design of cbgt.Dest, but if it did, the rollback would not work.
      This is different from the old behavior where it would not rollback
      and potentially enter a rollback loop if this function was called.
    - remove maxVbNo from NewDCPDest in effort to shorten the arguments
      since the flag can be inferred from base.Bucket.
    - Create some public structs to make tests easier:
    	- ShardedImportDCPMetadata
    	- CBGCfgIndexDefs, CBGTIndexNodeDefsKnown, CBGTIndexNodeDefsWanted, CBGTCfgPlanPIndexes
    
    * work around MB-60564
    
    * Change message
    
    * Make remove raceproof and improve comment
    
    * Reduce scope of changes for easier backport
    
    * Address comments to make code simpler
    torcolvin authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    2226e72 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. Configuration menu
    Copy the full SHA
    0f7cfd7 View commit details
    Browse the repository at this point in the history
  2. Include BLIP context ID in _blipsync response with X-Correlation-ID… (#…

    …6659)
    
    * Include BLIP context ID in _blipsync response with `X-Correlation-ID` header
    bbrks authored Feb 2, 2024
    Configuration menu
    Copy the full SHA
    c22befb View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. CBG-3591 stream request body from file (#6665)

    * CBG-3591 stream request body from file to allow for >2GB files
    * replaces python 2 API with a python 3 API
    torcolvin authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    f315973 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. CBG-3763: setup 3.1.4 builds (#6666)

    * CBG-3763: setup 3.1.4 builds
    
    * Update manifest/product-config.json
    
    Co-authored-by: Ben Brooks <[email protected]>
    
    ---------
    
    Co-authored-by: Ben Brooks <[email protected]>
    gregns1 and bbrks authored Feb 6, 2024
    Configuration menu
    Copy the full SHA
    6091f81 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5cabc0 View commit details
    Browse the repository at this point in the history
  3. Put UserXattrStore into DataStore to avoid need to typecast (#6663)

    * Put UserXattrStore into DataStore to avoid need to typecast
    torcolvin authored Feb 6, 2024
    Configuration menu
    Copy the full SHA
    8c89d1d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a7de2cd View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. Configuration menu
    Copy the full SHA
    dd1893a View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Configuration menu
    Copy the full SHA
    03a1274 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. CI: Add redoc.ly OpenAPI PR preview links (#6683)

    * Add redoc.ly OpenAPI preview links when PR updates these files
    * fix typos in OpenAPI specs
    * bump SG version in OpenAPI specs
    bbrks authored Feb 14, 2024
    Configuration menu
    Copy the full SHA
    335cfa2 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2024

  1. CI: Move OpenAPI commenting action to own workflow only for PRs (#6684)

    * Move OpenAPI commenting action to own workflow only for PRs
    
    * Update .github/workflows/openapi-pr.yml
    bbrks authored Feb 15, 2024
    Configuration menu
    Copy the full SHA
    9b78255 View commit details
    Browse the repository at this point in the history
  2. test cleanup in Collection tests (#6685)

    - use testify assertions when possible
    - don't check for deleted doc not existing at start of the test, we
      assert this via bucket pool
    - drop messages on assertions for xattr write functions since the
      function names
    - enable test that now works in rosmar
    torcolvin authored Feb 15, 2024
    Configuration menu
    Copy the full SHA
    4b7f45a View commit details
    Browse the repository at this point in the history
  3. CBG-3741: Throttle concurrent revs per-replication (#6660)

    * Throttle concurrent revs (push and pull) to 5 for an individual replicating client
    
    * Consider proposeChanges as a changes batch for the inFlightChangesThrottle purposes
    
    * Make MaxConcurrentChangesBatches and MaxConcurrentRevs configurable
    
    * Add test and stats
    
    * Add stat descriptions
    
    * Fix config bug that the test found
    
    * Fix missing stat init for ISGR - split Connected Client rev throttle stat
    
    * PR comments for stats - add pull equivalent stat
    
    * Remove pull replication rev throttling (single-threaded)
    
    * int -> *int
    
    * Move replication throttle config to StartupConfig validation
    
    * Add test coverage for StartupConfig Validate for MaxConcurrentRevs
    
    * remove test logging
    bbrks authored Feb 15, 2024
    Configuration menu
    Copy the full SHA
    71fb19d View commit details
    Browse the repository at this point in the history
  4. CBG-3641: Ignore read-only fields if values unchanged in User API (#6687

    )
    
    * CBG-3641: Ignore read-only fields if values unchanged in User API
    
    * updates to address comments
    gregns1 authored Feb 15, 2024
    Configuration menu
    Copy the full SHA
    db9d489 View commit details
    Browse the repository at this point in the history
  5. CBG-3688 make sure kv_pool_size is overriden correctly for DCP (#6680)

    * CBG-3688 make sure kv_pool_size is overriden correctly for DCP
    
    - create two functions for getting the connection string
    	- GetGoCBConnString
    	- GetGoCBConnStringForDCP
    
    Simplifications to API:
    
    - Fix a confusing invariant where GetGoCBConnString would initialize KvPoolSize on BucketSpec but making BucketSpec stateless and moving operations to be performed on an connection string
    - Remove redundant ca_cert_path, set by auth
    - Centralize modifying the connection string defaults for serverless on Bootstrap and Bucket creation.
    torcolvin authored Feb 15, 2024
    Configuration menu
    Copy the full SHA
    6cd38f1 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. OpenAPI: Update redocly cli in GH Actions and fix deprecated lint s…

    …ection (#6690)
    
    * * Remove deprecated `lint` config.
    
    * Disable `security-defined` linter until we document what is public
    
    * Add OpenAPI spec readme - will populate with more info another time
    
    * Bump action version
    bbrks authored Feb 16, 2024
    Configuration menu
    Copy the full SHA
    16d46c8 View commit details
    Browse the repository at this point in the history
  2. CBG-3610: Fix regression on PUT /_user/... endpoint when sending `n…

    …ull` `admin_channels` / `admin_roles` (#6691)
    
    * Add test to repro CBG-3610
    
    * Allow `nil` ExplicitChannels to remove the set of admin channels/roles for a user
    
    * Fix TestSessionPasswordInvalidation relying on buggy behaviour of User API
    
    * Use GetUserPayload test helper and check roles as well
    bbrks authored Feb 16, 2024
    Configuration menu
    Copy the full SHA
    6127bd9 View commit details
    Browse the repository at this point in the history
  3. Add MustJSONMarshal helper function (#6693)

    - add checks for json marshaling everywhere except benchmark code
    torcolvin authored Feb 16, 2024
    Configuration menu
    Copy the full SHA
    00c6f8e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5d1ab1d View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. CBG-3741 test fix: Cherry-pick 3.1.4-fix to slow down rosmar tests (#…

    …6695)
    
    * Cherry-pick 3.1.4-fix to slow down rosmar tests
    bbrks authored Feb 20, 2024
    Configuration menu
    Copy the full SHA
    05aab48 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

  1. Update to go-1.21.7 (#6697)

    VULN-4266, VULN-4334, VULN-4330
    torcolvin authored Feb 21, 2024
    Configuration menu
    Copy the full SHA
    1b14908 View commit details
    Browse the repository at this point in the history
  2. Update golang.org/x/crypto to 0.19.0 (#6698)

    This silences VULN-4267, but these CVEs do not affect Sync Gateway.
    torcolvin authored Feb 21, 2024
    Configuration menu
    Copy the full SHA
    047c0c3 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. Add new targets for generating internal apis (#6699)

    * Add new targets for generating internal apis
    * Address lint issues with newest redocly api
    torcolvin authored Feb 22, 2024
    Configuration menu
    Copy the full SHA
    346b785 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. CBG-3727: Diagnostic API: Get all doc channels (#6701)

    * Add handling and test for get all doc channels
    
    * Fix lint
    
    * Add licensing
    
    * Address comments
    
    * Add docs
    
    * fix yamllint
    
    * Add DocumentHistoryMaxEntriesPerChannel test case and fix docs
    
    * Denote compacted sequence pairs with ~
    
    * Fix goimports
    
    * Fix comment
    
    * Fix comment
    
    * Add unmarshalJSON handlign for compacted sequence pair
    mohammed-madi authored Feb 27, 2024
    Configuration menu
    Copy the full SHA
    70a591b View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. Configuration menu
    Copy the full SHA
    b0761bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76bb0a9 View commit details
    Browse the repository at this point in the history
  3. CBG-3279: Reduce compaction error logging volume (#6706)

    * CBG-3279: log at info level for each operation error (add, delete and purge) keeping track of how many errors each one has so we can log once at end of compaction showing amount of errors for each operation throughout compaction run
    
    * incorrectly logged purged doc count not purged error count
    
    * address comments
    
    * final touches, better logging
    gregns1 authored Feb 29, 2024
    Configuration menu
    Copy the full SHA
    dbf6cdb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ef50569 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. CBG-3702: setup 7.6.1 buckets for integration tests (#6704)

    * CBG-3702: setup 7.6.1 buckets for integration tests
    gregns1 authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    4d3dfdc View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. CBG-3791: change getAuthScopeHandleCreateDB method to not expand envi…

    …ronment variables (#6703)
    
    * CBG-3791: change getAuthScopeHandleCreateDB method to not expand environment variables
    
    * updates after review
    
    * updates off review
    
    * fix test for default collection
    gregns1 authored Mar 5, 2024
    Configuration menu
    Copy the full SHA
    5bfdb17 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    172ac73 View commit details
    Browse the repository at this point in the history
  3. CBG-3742: Allow registry rollbacks based on db config doc rollbacks (#…

    …6709)
    
    * Extend startBootstrapServerWithoutConfigPolling polling interval
    
    * tidy return
    
    * Use config from bucket to roll back if no previous version is found (config vbucket rollback/config restore)
    
    * wip
    
    * Mark conflicting rollbacks as invalid in db registry and prevent loading by SG. Allows for manual repair of database config.
    
    * Improve log message for invalid database configurations - handle multiple scenarios
    
    * Handle unknown reasons why a db could be invalid
    
    * Do database repair via normal Admin REST API rather to ensure externally recoverable
    
    * Equal(len())->Len()
    
    * Rename stat
    
    * UD->MD fix
    
    * lower retry timeout for testing
    
    * Require 3 datastores
    
    * Replace registry entry with one built from config
    
    * Reword unexpected InvalidDatabase case
    
    * Push mutliDatabsaeRollback into subtest
    
    * fix ineffassign
    
    * Fix non-deterministic slice ordering from RequireInvalidDatabaseConfigNames helper
    bbrks authored Mar 5, 2024
    Configuration menu
    Copy the full SHA
    fe58465 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Bump Go to 1.21.8 (#6717)

    * Bump Go to 1.21.8
    
    * Bump CI
    bbrks authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    8f1f504 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. CBG-3813 add insertion strings to capture stdout/stderr (#6719)

    * CBG-3813 add insertion strings to capture stdout/stderr
    * Remove Message which is always going to say Incorrect function
    torcolvin authored Mar 7, 2024
    Configuration menu
    Copy the full SHA
    dd3f092 View commit details
    Browse the repository at this point in the history
  2. Test cleanup: Equal(len()) -> Len() (#6712)

    * Auto-convert equal assertions to Len helper
    
    * Lenf variants
    bbrks authored Mar 7, 2024
    Configuration menu
    Copy the full SHA
    f604e21 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. CBG-3745: Bail out of config updates when the registry write fails af…

    …ter exceeding retry attempts (#6720)
    
    * Bail out of config updates when the registry write fails after exceeding retry attempts
    bbrks authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    8acc5cd View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. Configuration menu
    Copy the full SHA
    67c3ab7 View commit details
    Browse the repository at this point in the history
  2. CBG-3278: move serverless stats behind serverless flag (#6711)

    * CBG-3278: move elixir stats behind serverless flag
    
    * tidy up
    
    * test fixes
    
    * remove sync function from rest tester, then alter tests to not use this if non default sync function is needed + adding stats options struct
    gregns1 authored Mar 13, 2024
    Configuration menu
    Copy the full SHA
    0623c19 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    40a3650 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    95722e3 View commit details
    Browse the repository at this point in the history
  3. make test work with tls and not tls (#6726)

    - skip test on CBS 7.6
    torcolvin authored Mar 15, 2024
    Configuration menu
    Copy the full SHA
    f9f6cc0 View commit details
    Browse the repository at this point in the history
  4. Show error output (#6729)

    torcolvin authored Mar 15, 2024
    Configuration menu
    Copy the full SHA
    d6c590f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e3aed06 View commit details
    Browse the repository at this point in the history
  6. CBG-3804: Reset 3.2, make master 3.3 and rename 4.0 branch (#6732)

    * Spin master into 3.3 and continue building 4.0 on separate branch
    
    * Bump 3.2 start build
    
    * bump master API version
    
    * Move most 3.2 stats to 3.3
    
    * Change 4.0 branch name
    bbrks authored Mar 15, 2024
    Configuration menu
    Copy the full SHA
    57caa78 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Update dependabot.yml to pull from private registry (#6733)

    * Update dependabot.yml to pull from private registry
    
    * Update .github/dependabot.yml
    
    Co-authored-by: Ben Brooks <[email protected]>
    
    ---------
    
    Co-authored-by: Ben Brooks <[email protected]>
    torcolvin and bbrks authored Mar 20, 2024
    Configuration menu
    Copy the full SHA
    07367d2 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. Bump github.com/gorilla/mux from 1.8.0 to 1.8.1 (#6736)

    Bumps [github.com/gorilla/mux](https://github.com/gorilla/mux) from 1.8.0 to 1.8.1.
    - [Release notes](https://github.com/gorilla/mux/releases)
    - [Commits](gorilla/mux@v1.8.0...v1.8.1)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/gorilla/mux
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 25, 2024
    Configuration menu
    Copy the full SHA
    e2785a4 View commit details
    Browse the repository at this point in the history
  2. Bump golang.org/x/oauth2 from 0.14.0 to 0.18.0 (#6735)

    Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.14.0 to 0.18.0.
    - [Commits](golang/oauth2@v0.14.0...v0.18.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/oauth2
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 25, 2024
    Configuration menu
    Copy the full SHA
    e243c5c View commit details
    Browse the repository at this point in the history
  3. Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#6742)

    Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.
    
    ---
    updated-dependencies:
    - dependency-name: google.golang.org/protobuf
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 25, 2024
    Configuration menu
    Copy the full SHA
    ab3df1d View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. CBG-3764 create multi-xattr subdoc APIs (#6739)

    Co-authored-by: adamcfraser <[email protected]>
    torcolvin and adamcfraser authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    8b976f5 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. CBG-3764 update base implementation of XDCR in rosmar

    - define common interfaces in sg-bucket for XDCR and related structs
    - move test to use NewXDCR to allow it to run the same test with CBS or
      rosmar
    
    cleanup:
    
    - define DataStoreName on Collection object to avoid casting
    torcolvin committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    3e3a268 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cac16fb View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. refactor

    torcolvin committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    9e53aac View commit details
    Browse the repository at this point in the history
  2. update go.mod

    torcolvin committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    58a0a91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5110a10 View commit details
    Browse the repository at this point in the history
  4. Fix test

    torcolvin committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    2344e0e View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. make tests pass with 6.6 (#6751)

    - xdcr tests have timing issues with creating an XDCR bucket to bucket
      replication and do not run 95% of the time.
    - fix an error with defer bucket.Close() where the tests would panic
    torcolvin authored Apr 2, 2024
    Configuration menu
    Copy the full SHA
    59c3286 View commit details
    Browse the repository at this point in the history
  2. Bump github.com/elastic/gosigar from 0.14.2 to 0.14.3 (#6749)

    Bumps [github.com/elastic/gosigar](https://github.com/elastic/gosigar) from 0.14.2 to 0.14.3.
    - [Release notes](https://github.com/elastic/gosigar/releases)
    - [Changelog](https://github.com/elastic/gosigar/blob/master/CHANGELOG.md)
    - [Commits](elastic/gosigar@v0.14.2...v0.14.3)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/elastic/gosigar
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 2, 2024
    Configuration menu
    Copy the full SHA
    ceef9cf View commit details
    Browse the repository at this point in the history
  3. make blip tests fail with stack traces using testify (#6748)

    * Cleanup tests
    
    - Create TB() helper functions to make it easier to pick up the right
      TB function since it can get reset or hard to pick up
    - use require.EventuallyT instead of testing.T.Fatalf to get tracebacks
      when they fail. Because these functions fail anyway, removed the
      return of boolean found.
    - switch panic to require statements
    torcolvin authored Apr 2, 2024
    Configuration menu
    Copy the full SHA
    405aa8e View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. support golangci-lint 1.57.2 (#6754)

    - changes defaults to enabled
    - update golangci-lint-action to v4 to avoid node deprecation warnings
      from action
    torcolvin authored Apr 3, 2024
    Configuration menu
    Copy the full SHA
    4316e75 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Combine MutationStore2, Collection, DataStoreName into DataStore (#6752)

    * Combine MutationStore2, Collection, DataStoreName into DataStore
    
    This is cleanup from the introduction to rosmar.
    
    - rosmar.Collection and Collection already satisified the DataStoreName
    interface, so putting it as part of DataStore removes need for
    AsDataStoreName checks.
    - remove GetFeedType() checks since it will always return DCP
    
    - Remove StartTapFeed from leaky bucket because it was not being used.
      TestStopChangeCache was only running with xattrs disabled, but the
      test would pass even if the events arrived out of order, so the leaky
      bucket tap code was not being executed.
    - Reflect in documentation that DCP feed is always used.
    
    * Replace leaky bucket code for DCPMissingDocs
    torcolvin authored Apr 4, 2024
    Configuration menu
    Copy the full SHA
    a9811cd View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Configuration menu
    Copy the full SHA
    aa7d0ab View commit details
    Browse the repository at this point in the history
  2. update go.mod

    torcolvin committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    20840ba View commit details
    Browse the repository at this point in the history