-
Notifications
You must be signed in to change notification settings - Fork 138
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
Commits on Aug 23, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for b9a8ea2 - Browse repository at this point
Copy the full SHA b9a8ea2View commit details -
CBG-3273: Fix revocation feed loop (#6378)
* Add TestRevocationsWithQueryLimit2Channels and fix loop * Move lastSeq assignment before inner loop
Configuration menu - View commit details
-
Copy full SHA for d1898fd - Browse repository at this point
Copy the full SHA d1898fdView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 18f7420 - Browse repository at this point
Copy the full SHA 18f7420View commit details -
CBG-2455 fix race detector issue (#6380)
err was shadowed inside a goroutine, added scoping when available
Configuration menu - View commit details
-
Copy full SHA for 36cf9a8 - Browse repository at this point
Copy the full SHA 36cf9a8View commit details
Commits on Aug 24, 2023
-
CBG-3316: Silence metrics requests (#6376)
* Silence metrics requests * Lower log level of successful admin auth and 'Recording snapshot of current debug variables' message
Configuration menu - View commit details
-
Copy full SHA for a3f83b5 - Browse repository at this point
Copy the full SHA a3f83b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c585e48 - Browse repository at this point
Copy the full SHA c585e48View commit details -
CBG-3171: Fix rev cache multi node inconsistency (#6369)
Co-authored-by: adamcfraser <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a45339d - Browse repository at this point
Copy the full SHA a45339dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5288dbf - Browse repository at this point
Copy the full SHA 5288dbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for aff7f54 - Browse repository at this point
Copy the full SHA aff7f54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b3d1a7 - Browse repository at this point
Copy the full SHA 3b3d1a7View commit details
Commits on Aug 28, 2023
-
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]>
Configuration menu - View commit details
-
Copy full SHA for db4b182 - Browse repository at this point
Copy the full SHA db4b182View commit details
Commits on Aug 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9c7cad0 - Browse repository at this point
Copy the full SHA 9c7cad0View commit details
Commits on Aug 30, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for ca81fa7 - Browse repository at this point
Copy the full SHA ca81fa7View commit details
Commits on Aug 31, 2023
-
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()
Configuration menu - View commit details
-
Copy full SHA for 2689cf8 - Browse repository at this point
Copy the full SHA 2689cf8View commit details
Commits on Sep 6, 2023
-
Co-authored-by: Ben Brooks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9290abe - Browse repository at this point
Copy the full SHA 9290abeView commit details -
CBG-3352 remove invalid entries from revcache (#6390)
* CBG-3352 remove invalidation, just remove data from cache * Fix fieldalignment on structs
Configuration menu - View commit details
-
Copy full SHA for 246fde2 - Browse repository at this point
Copy the full SHA 246fde2View commit details
Commits on Sep 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8f49e36 - Browse repository at this point
Copy the full SHA 8f49e36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c23519 - Browse repository at this point
Copy the full SHA 4c23519View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf74d2e - Browse repository at this point
Copy the full SHA cf74d2eView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 94071f8 - Browse repository at this point
Copy the full SHA 94071f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 132ec4e - Browse repository at this point
Copy the full SHA 132ec4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bde1ea - Browse repository at this point
Copy the full SHA 2bde1eaView commit details
Commits on Sep 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c660b5a - Browse repository at this point
Copy the full SHA c660b5aView commit details
Commits on Sep 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3f1c066 - Browse repository at this point
Copy the full SHA 3f1c066View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5b25c3 - Browse repository at this point
Copy the full SHA a5b25c3View commit details -
CBG-3292: Handling for corrupt db config (#6377)
* CBG-3292: force config update on corrupt db config
Configuration menu - View commit details
-
Copy full SHA for b35e52e - Browse repository at this point
Copy the full SHA b35e52eView commit details
Commits on Sep 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e823439 - Browse repository at this point
Copy the full SHA e823439View commit details
Commits on Sep 13, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for a76bb57 - Browse repository at this point
Copy the full SHA a76bb57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14c0eb9 - Browse repository at this point
Copy the full SHA 14c0eb9View commit details -
CBG-3379 add missing context logging (#6408)
Co-authored-by: Ben Brooks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2da8f9c - Browse repository at this point
Copy the full SHA 2da8f9cView commit details
Commits on Sep 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b32b61c - Browse repository at this point
Copy the full SHA b32b61cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f761691 - Browse repository at this point
Copy the full SHA f761691View commit details
Commits on Sep 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 885ce22 - Browse repository at this point
Copy the full SHA 885ce22View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 741ee31 - Browse repository at this point
Copy the full SHA 741ee31View commit details
Commits on Sep 19, 2023
-
CBG-3385: link up the reset resync code to the api for a user to use (#…
Configuration menu - View commit details
-
Copy full SHA for 6fc4fe4 - Browse repository at this point
Copy the full SHA 6fc4fe4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8fcf9e - Browse repository at this point
Copy the full SHA b8fcf9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99f4522 - Browse repository at this point
Copy the full SHA 99f4522View commit details -
Reenable TestMultiCollectionDCP and fix (#6431)
* Reenable TestMultiCollectionDCP and fix
Configuration menu - View commit details
-
Copy full SHA for 39b4659 - Browse repository at this point
Copy the full SHA 39b4659View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 633580b - Browse repository at this point
Copy the full SHA 633580bView commit details
Commits on Sep 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 10882cd - Browse repository at this point
Copy the full SHA 10882cdView commit details
Commits on Sep 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b97d25d - Browse repository at this point
Copy the full SHA b97d25dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f098de5 - Browse repository at this point
Copy the full SHA f098de5View commit details -
CBG-3378 Switch some Debug statements to Info (#6423)
Co-authored-by: Ben Brooks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bd6c27f - Browse repository at this point
Copy the full SHA bd6c27fView commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for d31af1f - Browse repository at this point
Copy the full SHA d31af1fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 25fc3c5 - Browse repository at this point
Copy the full SHA 25fc3c5View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for e9b9618 - Browse repository at this point
Copy the full SHA e9b9618View commit details
Commits on Sep 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 91a1cb3 - Browse repository at this point
Copy the full SHA 91a1cb3View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0b90e55 - Browse repository at this point
Copy the full SHA 0b90e55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4194409 - Browse repository at this point
Copy the full SHA 4194409View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ffcf8b - Browse repository at this point
Copy the full SHA 9ffcf8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e436c73 - Browse repository at this point
Copy the full SHA e436c73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14d2987 - Browse repository at this point
Copy the full SHA 14d2987View commit details -
CBG-3394 don't panic if user is deleted with active blip replication (#…
Configuration menu - View commit details
-
Copy full SHA for ac740e8 - Browse repository at this point
Copy the full SHA ac740e8View commit details
Commits on Sep 25, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for 9384a7b - Browse repository at this point
Copy the full SHA 9384a7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 626b62e - Browse repository at this point
Copy the full SHA 626b62eView commit details
Commits on Sep 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6bf6190 - Browse repository at this point
Copy the full SHA 6bf6190View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4987aa6 - Browse repository at this point
Copy the full SHA 4987aa6View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 408b47e - Browse repository at this point
Copy the full SHA 408b47eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a2b934 - Browse repository at this point
Copy the full SHA 1a2b934View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7b2ac8 - Browse repository at this point
Copy the full SHA f7b2ac8View commit details
Commits on Sep 27, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for b025adf - Browse repository at this point
Copy the full SHA b025adfView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for d0c71ac - Browse repository at this point
Copy the full SHA d0c71acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 621641f - Browse repository at this point
Copy the full SHA 621641fView commit details
Commits on Sep 28, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for ff0b88f - Browse repository at this point
Copy the full SHA ff0b88fView commit details
Commits on Sep 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1d5b909 - Browse repository at this point
Copy the full SHA 1d5b909View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff3e1a0 - Browse repository at this point
Copy the full SHA ff3e1a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b6787a - Browse repository at this point
Copy the full SHA 3b6787aView commit details
Commits on Oct 2, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for 8a59a82 - Browse repository at this point
Copy the full SHA 8a59a82View commit details -
Configuration menu - View commit details
-
Copy full SHA for c028acc - Browse repository at this point
Copy the full SHA c028accView commit details
Commits on Oct 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2a9ed02 - Browse repository at this point
Copy the full SHA 2a9ed02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89e0d26 - Browse repository at this point
Copy the full SHA 89e0d26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8549699 - Browse repository at this point
Copy the full SHA 8549699View commit details
Commits on Oct 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 27aff8f - Browse repository at this point
Copy the full SHA 27aff8fView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 3ec4e7a - Browse repository at this point
Copy the full SHA 3ec4e7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 12f484d - Browse repository at this point
Copy the full SHA 12f484dView commit details
Commits on Oct 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ea958eb - Browse repository at this point
Copy the full SHA ea958ebView commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for ce51e97 - Browse repository at this point
Copy the full SHA ce51e97View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 7908d3c - Browse repository at this point
Copy the full SHA 7908d3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf8c3a4 - Browse repository at this point
Copy the full SHA cf8c3a4View commit details
Commits on Oct 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d183dbe - Browse repository at this point
Copy the full SHA d183dbeView commit details
Commits on Oct 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f0aff4e - Browse repository at this point
Copy the full SHA f0aff4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cc10c8 - Browse repository at this point
Copy the full SHA 9cc10c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1bf484 - Browse repository at this point
Copy the full SHA e1bf484View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3bb61d - Browse repository at this point
Copy the full SHA e3bb61dView commit details
Commits on Oct 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e5a3b53 - Browse repository at this point
Copy the full SHA e5a3b53View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 7816dc7 - Browse repository at this point
Copy the full SHA 7816dc7View commit details
Commits on Oct 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2e5a4cb - Browse repository at this point
Copy the full SHA 2e5a4cbView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a142ec8 - Browse repository at this point
Copy the full SHA a142ec8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53fafa8 - Browse repository at this point
Copy the full SHA 53fafa8View commit details
Commits on Oct 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d2d9387 - Browse repository at this point
Copy the full SHA d2d9387View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78dbfe9 - Browse repository at this point
Copy the full SHA 78dbfe9View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 70b1825 - Browse repository at this point
Copy the full SHA 70b1825View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a85c1da - Browse repository at this point
Copy the full SHA a85c1daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6537f43 - Browse repository at this point
Copy the full SHA 6537f43View commit details -
Configuration menu - View commit details
-
Copy full SHA for e768d62 - Browse repository at this point
Copy the full SHA e768d62View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 03794e0 - Browse repository at this point
Copy the full SHA 03794e0View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 0e8dd17 - Browse repository at this point
Copy the full SHA 0e8dd17View commit details
Commits on Oct 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ae41dc8 - Browse repository at this point
Copy the full SHA ae41dc8View commit details
Commits on Oct 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d41b0d2 - Browse repository at this point
Copy the full SHA d41b0d2View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for ee61916 - Browse repository at this point
Copy the full SHA ee61916View commit details
Commits on Oct 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2a2d835 - Browse repository at this point
Copy the full SHA 2a2d835View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3472260 - Browse repository at this point
Copy the full SHA 3472260View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a687eb1 - Browse repository at this point
Copy the full SHA a687eb1View commit details
Commits on Oct 23, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for 5ef676e - Browse repository at this point
Copy the full SHA 5ef676eView commit details -
CBG-3516 Implement nextSequenceGreaterThan to reduce incr and unused …
…seq traffic (#6547) Co-authored-by: Ben Brooks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 20e5e47 - Browse repository at this point
Copy the full SHA 20e5e47View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 61a63e3 - Browse repository at this point
Copy the full SHA 61a63e3View commit details
Commits on Oct 24, 2023
-
makes golangci-lint more strict (#6507)
* Enable unconvert * Enable unused code check
Configuration menu - View commit details
-
Copy full SHA for 343f8d4 - Browse repository at this point
Copy the full SHA 343f8d4View commit details -
CBG-3559: Inherited channels from roles are not checked when running …
Configuration menu - View commit details
-
Copy full SHA for a599119 - Browse repository at this point
Copy the full SHA a599119View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 2e1590a - Browse repository at this point
Copy the full SHA 2e1590aView commit details
Commits on Oct 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for acc14a3 - Browse repository at this point
Copy the full SHA acc14a3View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for ca0846c - Browse repository at this point
Copy the full SHA ca0846cView commit details
Commits on Oct 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for aa4fcc1 - Browse repository at this point
Copy the full SHA aa4fcc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b286bb - Browse repository at this point
Copy the full SHA 8b286bbView commit details
Commits on Oct 27, 2023
-
CBG-3268 replace WaitForRev with WaitForVersion (#6554)
* CBG-3268 replace WaitForRev with WaitForVersion
Configuration menu - View commit details
-
Copy full SHA for 9ea438d - Browse repository at this point
Copy the full SHA 9ea438dView commit details
Commits on Oct 30, 2023
-
CBG-3268 remove RespRevID and prepare for HLV aware testing (#6560)
* CBG-3268 remove RespRevID and prepare for HLV aware testing
Configuration menu - View commit details
-
Copy full SHA for b8ba7f1 - Browse repository at this point
Copy the full SHA b8ba7f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69ea24b - Browse repository at this point
Copy the full SHA 69ea24bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bef056 - Browse repository at this point
Copy the full SHA 1bef056View commit details
Commits on Nov 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e8f9645 - Browse repository at this point
Copy the full SHA e8f9645View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9033a3 - Browse repository at this point
Copy the full SHA a9033a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9daa699 - Browse repository at this point
Copy the full SHA 9daa699View commit details
Commits on Nov 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2fe011c - Browse repository at this point
Copy the full SHA 2fe011cView commit details
Commits on Nov 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4508380 - Browse repository at this point
Copy the full SHA 4508380View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6323ac9 - Browse repository at this point
Copy the full SHA 6323ac9View commit details
Commits on Nov 10, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for a398881 - Browse repository at this point
Copy the full SHA a398881View commit details
Commits on Nov 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8fd554e - Browse repository at this point
Copy the full SHA 8fd554eView commit details
Commits on Nov 14, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for 1db1763 - Browse repository at this point
Copy the full SHA 1db1763View commit details -
Configuration menu - View commit details
-
Copy full SHA for 488fae4 - Browse repository at this point
Copy the full SHA 488fae4View commit details
Commits on Nov 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d75a09b - Browse repository at this point
Copy the full SHA d75a09bView commit details
Commits on Nov 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5b97466 - Browse repository at this point
Copy the full SHA 5b97466View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea7eae7 - Browse repository at this point
Copy the full SHA ea7eae7View commit details
Commits on Nov 17, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for e287e05 - Browse repository at this point
Copy the full SHA e287e05View commit details
Commits on Nov 24, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for 3cec600 - Browse repository at this point
Copy the full SHA 3cec600View commit details -
CBG-3253: Add CBMobileReplicationV4 (#6583)
* Add CBMobileReplicationV4 const * Ensure TestAllowedAttachments works with v4 replicator version
Configuration menu - View commit details
-
Copy full SHA for ad74e7e - Browse repository at this point
Copy the full SHA ad74e7eView commit details
Commits on Nov 29, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for 4c00dba - Browse repository at this point
Copy the full SHA 4c00dbaView commit details -
CBG-3271 update rosmar to include changes for expiry & tombstone CAS …
…handling (#6587) handling
Configuration menu - View commit details
-
Copy full SHA for 5c90fa7 - Browse repository at this point
Copy the full SHA 5c90fa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47cbbc8 - Browse repository at this point
Copy the full SHA 47cbbc8View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 69adee0 - Browse repository at this point
Copy the full SHA 69adee0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6fe6ba - Browse repository at this point
Copy the full SHA a6fe6baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a1e3fd - Browse repository at this point
Copy the full SHA 4a1e3fdView commit details
Commits on Nov 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 91db64f - Browse repository at this point
Copy the full SHA 91db64fView commit details -
Make sure GetDatabase always refers to 1 database (#6594)
* Make sure GetDatabase always refers to 1 database * Avoid using GetDatabase ambiguously
Configuration menu - View commit details
-
Copy full SHA for 1cf9ac4 - Browse repository at this point
Copy the full SHA 1cf9ac4View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 349c93c - Browse repository at this point
Copy the full SHA 349c93cView commit details -
Configuration menu - View commit details
-
Copy full SHA for db307f1 - Browse repository at this point
Copy the full SHA db307f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6f0006 - Browse repository at this point
Copy the full SHA d6f0006View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6ff0a4 - Browse repository at this point
Copy the full SHA d6ff0a4View commit details
Commits on Dec 1, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for 0024100 - Browse repository at this point
Copy the full SHA 0024100View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4230375 - Browse repository at this point
Copy the full SHA 4230375View commit details
Commits on Dec 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ad26204 - Browse repository at this point
Copy the full SHA ad26204View commit details -
CBG-3584 Uptake cbgt fix for file system writes (#6606)
Co-authored-by: Ben Brooks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 053f145 - Browse repository at this point
Copy the full SHA 053f145View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51d1f81 - Browse repository at this point
Copy the full SHA 51d1f81View commit details -
Configuration menu - View commit details
-
Copy full SHA for d86b47e - Browse repository at this point
Copy the full SHA d86b47eView commit details
Commits on Dec 12, 2023
-
CBG-3652 check Origin header on websocket (#6610)
* CBG-3652 check Origin header on websocket
Configuration menu - View commit details
-
Copy full SHA for fc3b741 - Browse repository at this point
Copy the full SHA fc3b741View commit details
Commits on Dec 13, 2023
-
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).
Configuration menu - View commit details
-
Copy full SHA for de85542 - Browse repository at this point
Copy the full SHA de85542View commit details
Commits on Dec 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e6fd3d3 - Browse repository at this point
Copy the full SHA e6fd3d3View commit details -
CBG-3513: flaky test fix for TestCorruptDbConfigHandling (#6616)
* CBG-3513: flaky test fix for TestCorruptDbConfigHandling
Configuration menu - View commit details
-
Copy full SHA for defab57 - Browse repository at this point
Copy the full SHA defab57View commit details
Commits on Dec 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for dad81d0 - Browse repository at this point
Copy the full SHA dad81d0View commit details -
Update golang.org/x/crypto to v0.17.0 (#6618)
Fixes CVE-2023-48795 which does not affect SG since it requires ssh library.
Configuration menu - View commit details
-
Copy full SHA for 74c5fea - Browse repository at this point
Copy the full SHA 74c5feaView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b3d3dfd - Browse repository at this point
Copy the full SHA b3d3dfdView commit details -
CBD-5711: Update 'build' SHA in 3.2.0 manifest (#6617)
Brings in change to sort metrics_metadata.json content.
Configuration menu - View commit details
-
Copy full SHA for 66c0c2e - Browse repository at this point
Copy the full SHA 66c0c2eView commit details
Commits on Dec 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 064ccb6 - Browse repository at this point
Copy the full SHA 064ccb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for df5b764 - Browse repository at this point
Copy the full SHA df5b764View commit details
Commits on Dec 21, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for 0b60724 - Browse repository at this point
Copy the full SHA 0b60724View commit details
Commits on Jan 2, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for bea26ef - Browse repository at this point
Copy the full SHA bea26efView commit details
Commits on Jan 4, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 03fc9fc - Browse repository at this point
Copy the full SHA 03fc9fcView commit details
Commits on Jan 5, 2024
-
Add general Coverage Jenkins plugin (allows pushing coverage results …
…back to GitHub PRs) (#6629)
Configuration menu - View commit details
-
Copy full SHA for c57e4d0 - Browse repository at this point
Copy the full SHA c57e4d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 025d0ce - Browse repository at this point
Copy the full SHA 025d0ceView commit details
Commits on Jan 8, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 8622d99 - Browse repository at this point
Copy the full SHA 8622d99View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for bd7e4f6 - Browse repository at this point
Copy the full SHA bd7e4f6View commit details
Commits on Jan 9, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 9ac976b - Browse repository at this point
Copy the full SHA 9ac976bView commit details
Commits on Jan 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ac8c7ae - Browse repository at this point
Copy the full SHA ac8c7aeView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 2e37dac - Browse repository at this point
Copy the full SHA 2e37dacView commit details
Commits on Jan 11, 2024
-
fetchAndLoadDatabase wasn't acquiring the lock before falling into _f…
…etchAndLoadDatabase (#6638)
Configuration menu - View commit details
-
Copy full SHA for d3cda06 - Browse repository at this point
Copy the full SHA d3cda06View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 444f9b1 - Browse repository at this point
Copy the full SHA 444f9b1View commit details
Commits on Jan 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 57f5801 - Browse repository at this point
Copy the full SHA 57f5801View commit details -
CBG-3695 implement Couchbase Server bucket to bucket XDCR (#6628)
- Create a basic Replication interface to be matched in rosmar
Configuration menu - View commit details
-
Copy full SHA for be6f58c - Browse repository at this point
Copy the full SHA be6f58cView commit details
Commits on Jan 17, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 49f66ef - Browse repository at this point
Copy the full SHA 49f66efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76fd8bf - Browse repository at this point
Copy the full SHA 76fd8bfView commit details -
CBG-3645: Shuffle tests (#6632)
* Shuffle tests * Make TestSetRedaction clean up after itself * Drop shuffled runs on integration tests
Configuration menu - View commit details
-
Copy full SHA for a8c34c3 - Browse repository at this point
Copy the full SHA a8c34c3View commit details -
lint: gocritic: Enable ruleguard for non-strict lint config (#6645)
Configuration menu - View commit details
-
Copy full SHA for df6bbda - Browse repository at this point
Copy the full SHA df6bbdaView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 87cca79 - Browse repository at this point
Copy the full SHA 87cca79View commit details
Commits on Jan 19, 2024
-
implement body.Close checker (#6646)
* implement body.Close * Add some missing asserts, simplify MakeUser * add missing error check
Configuration menu - View commit details
-
Copy full SHA for d00d704 - Browse repository at this point
Copy the full SHA d00d704View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05a8a2c - Browse repository at this point
Copy the full SHA 05a8a2cView commit details
Commits on Jan 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9cc37dd - Browse repository at this point
Copy the full SHA 9cc37ddView commit details
Commits on Jan 24, 2024
-
* Run go.mod tidy * Add tools file to prevent go-ruleguard from being declared an indirect depenency
Configuration menu - View commit details
-
Copy full SHA for c0f8532 - Browse repository at this point
Copy the full SHA c0f8532View commit details
Commits on Jan 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b0114a4 - Browse repository at this point
Copy the full SHA b0114a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11d2f09 - Browse repository at this point
Copy the full SHA 11d2f09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 772c33c - Browse repository at this point
Copy the full SHA 772c33cView commit details
Commits on Jan 30, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 2226e72 - Browse repository at this point
Copy the full SHA 2226e72View commit details
Commits on Feb 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0f7cfd7 - Browse repository at this point
Copy the full SHA 0f7cfd7View commit details -
Include BLIP context ID in _blipsync response with X-Correlation-ID… (#…
…6659) * Include BLIP context ID in _blipsync response with `X-Correlation-ID` header
Configuration menu - View commit details
-
Copy full SHA for c22befb - Browse repository at this point
Copy the full SHA c22befbView commit details
Commits on Feb 5, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for f315973 - Browse repository at this point
Copy the full SHA f315973View commit details
Commits on Feb 6, 2024
-
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]>
Configuration menu - View commit details
-
Copy full SHA for 6091f81 - Browse repository at this point
Copy the full SHA 6091f81View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5cabc0 - Browse repository at this point
Copy the full SHA b5cabc0View commit details -
Put UserXattrStore into DataStore to avoid need to typecast (#6663)
* Put UserXattrStore into DataStore to avoid need to typecast
Configuration menu - View commit details
-
Copy full SHA for 8c89d1d - Browse repository at this point
Copy the full SHA 8c89d1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a7de2cd - Browse repository at this point
Copy the full SHA a7de2cdView commit details
Commits on Feb 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for dd1893a - Browse repository at this point
Copy the full SHA dd1893aView commit details
Commits on Feb 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 03a1274 - Browse repository at this point
Copy the full SHA 03a1274View commit details
Commits on Feb 14, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 335cfa2 - Browse repository at this point
Copy the full SHA 335cfa2View commit details
Commits on Feb 15, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 9b78255 - Browse repository at this point
Copy the full SHA 9b78255View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 4b7f45a - Browse repository at this point
Copy the full SHA 4b7f45aView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 71fb19d - Browse repository at this point
Copy the full SHA 71fb19dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for db9d489 - Browse repository at this point
Copy the full SHA db9d489View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 6cd38f1 - Browse repository at this point
Copy the full SHA 6cd38f1View commit details
Commits on Feb 16, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 16d46c8 - Browse repository at this point
Copy the full SHA 16d46c8View commit details -
CBG-3610: Fix regression on
PUT /_user/...
endpoint when sending `n…Configuration menu - View commit details
-
Copy full SHA for 6127bd9 - Browse repository at this point
Copy the full SHA 6127bd9View commit details -
Add MustJSONMarshal helper function (#6693)
- add checks for json marshaling everywhere except benchmark code
Configuration menu - View commit details
-
Copy full SHA for 00c6f8e - Browse repository at this point
Copy the full SHA 00c6f8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d1ab1d - Browse repository at this point
Copy the full SHA 5d1ab1dView commit details
Commits on Feb 20, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 05aab48 - Browse repository at this point
Copy the full SHA 05aab48View commit details
Commits on Feb 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1b14908 - Browse repository at this point
Copy the full SHA 1b14908View commit details -
Update golang.org/x/crypto to 0.19.0 (#6698)
This silences VULN-4267, but these CVEs do not affect Sync Gateway.
Configuration menu - View commit details
-
Copy full SHA for 047c0c3 - Browse repository at this point
Copy the full SHA 047c0c3View commit details
Commits on Feb 22, 2024
-
Add new targets for generating internal apis (#6699)
* Add new targets for generating internal apis * Address lint issues with newest redocly api
Configuration menu - View commit details
-
Copy full SHA for 346b785 - Browse repository at this point
Copy the full SHA 346b785View commit details
Commits on Feb 27, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 70a591b - Browse repository at this point
Copy the full SHA 70a591bView commit details
Commits on Feb 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b0761bc - Browse repository at this point
Copy the full SHA b0761bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76bb0a9 - Browse repository at this point
Copy the full SHA 76bb0a9View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for dbf6cdb - Browse repository at this point
Copy the full SHA dbf6cdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef50569 - Browse repository at this point
Copy the full SHA ef50569View commit details
Commits on Mar 4, 2024
-
CBG-3702: setup 7.6.1 buckets for integration tests (#6704)
* CBG-3702: setup 7.6.1 buckets for integration tests
Configuration menu - View commit details
-
Copy full SHA for 4d3dfdc - Browse repository at this point
Copy the full SHA 4d3dfdcView commit details
Commits on Mar 5, 2024
-
CBG-3791: change getAuthScopeHandleCreateDB method to not expand envi…
Configuration menu - View commit details
-
Copy full SHA for 5bfdb17 - Browse repository at this point
Copy the full SHA 5bfdb17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 172ac73 - Browse repository at this point
Copy the full SHA 172ac73View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for fe58465 - Browse repository at this point
Copy the full SHA fe58465View commit details
Commits on Mar 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8f1f504 - Browse repository at this point
Copy the full SHA 8f1f504View commit details
Commits on Mar 7, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for dd3f092 - Browse repository at this point
Copy the full SHA dd3f092View commit details -
Test cleanup: Equal(len()) -> Len() (#6712)
* Auto-convert equal assertions to Len helper * Lenf variants
Configuration menu - View commit details
-
Copy full SHA for f604e21 - Browse repository at this point
Copy the full SHA f604e21View commit details
Commits on Mar 8, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 8acc5cd - Browse repository at this point
Copy the full SHA 8acc5cdView commit details
Commits on Mar 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 67c3ab7 - Browse repository at this point
Copy the full SHA 67c3ab7View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0623c19 - Browse repository at this point
Copy the full SHA 0623c19View commit details
Commits on Mar 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 40a3650 - Browse repository at this point
Copy the full SHA 40a3650View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95722e3 - Browse repository at this point
Copy the full SHA 95722e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9f6cc0 - Browse repository at this point
Copy the full SHA f9f6cc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6c590f - Browse repository at this point
Copy the full SHA d6c590fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3aed06 - Browse repository at this point
Copy the full SHA e3aed06View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 57caa78 - Browse repository at this point
Copy the full SHA 57caa78View commit details
Commits on Mar 20, 2024
-
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]>
Configuration menu - View commit details
-
Copy full SHA for 07367d2 - Browse repository at this point
Copy the full SHA 07367d2View commit details
Commits on Mar 25, 2024
-
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>
Configuration menu - View commit details
-
Copy full SHA for e2785a4 - Browse repository at this point
Copy the full SHA e2785a4View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for e243c5c - Browse repository at this point
Copy the full SHA e243c5cView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for ab3df1d - Browse repository at this point
Copy the full SHA ab3df1dView commit details
Commits on Mar 27, 2024
-
CBG-3764 create multi-xattr subdoc APIs (#6739)
Co-authored-by: adamcfraser <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8b976f5 - Browse repository at this point
Copy the full SHA 8b976f5View commit details
Commits on Mar 28, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 3e3a268 - Browse repository at this point
Copy the full SHA 3e3a268View commit details -
Configuration menu - View commit details
-
Copy full SHA for cac16fb - Browse repository at this point
Copy the full SHA cac16fbView commit details
Commits on Apr 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9e53aac - Browse repository at this point
Copy the full SHA 9e53aacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58a0a91 - Browse repository at this point
Copy the full SHA 58a0a91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5110a10 - Browse repository at this point
Copy the full SHA 5110a10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2344e0e - Browse repository at this point
Copy the full SHA 2344e0eView commit details
Commits on Apr 2, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 59c3286 - Browse repository at this point
Copy the full SHA 59c3286View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for ceef9cf - Browse repository at this point
Copy the full SHA ceef9cfView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 405aa8e - Browse repository at this point
Copy the full SHA 405aa8eView commit details
Commits on Apr 3, 2024
-
support golangci-lint 1.57.2 (#6754)
- changes defaults to enabled - update golangci-lint-action to v4 to avoid node deprecation warnings from action
Configuration menu - View commit details
-
Copy full SHA for 4316e75 - Browse repository at this point
Copy the full SHA 4316e75View commit details
Commits on Apr 4, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for a9811cd - Browse repository at this point
Copy the full SHA a9811cdView commit details
Commits on Apr 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for aa7d0ab - Browse repository at this point
Copy the full SHA aa7d0abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20840ba - Browse repository at this point
Copy the full SHA 20840baView commit details