-
Notifications
You must be signed in to change notification settings - Fork 0
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
Release/2.8.2 #2
base: mz2/multicookie
Are you sure you want to change the base?
Commits on Mar 19, 2020
-
CBG-716: Fail on unknown fields on config PUT (#4536)
* CBG-716: Fail on unknown fields on config PUT * Basic test
Configuration menu - View commit details
-
Copy full SHA for cec9aca - Browse repository at this point
Copy the full SHA cec9acaView commit details -
: Reliably flush to console on Fatalf (#4537)
* CBG-758: Reliably flush to console on Fatalf * Switch waitgroup to pointer * Fix typo
Configuration menu - View commit details
-
Copy full SHA for 962ff96 - Browse repository at this point
Copy the full SHA 962ff96View commit details
Commits on Mar 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 8ed74f7 - Browse repository at this point
Copy the full SHA 8ed74f7View commit details -
CBG-724: Deletions of empty documents are not imported (#4531)
* CBG-724: Deletions of empty documents are not imported * CBG-724: Deletions of empty documents are not imported When the document is a delete, the bodyBytes would be replaced with “{}” and we can’t use bodyBytes in CRC-32 checksum comparison to determine whether the mutation was an SG write and the document has already been imported. Need to set the current value of CRC-32 checksum from bodyBytes when the document is non-delete and revert back to the correct CRC-32 checksum “0x00” before we replace the bodyBytes otherwise (if the document is delete). * CBG-724: Deletions of empty documents are not imported - Added additional unit tests (TestUpdateXattrWithDeleteBodyAndIsDelete, TestUpdateXattrWithDeleteBodyAndIsNotDelete) in bucket_gocb_test.go to validate the new behaviour of UpdateXattr. - Refactored XattrMacroCrc32cDelete to DeleteCrc32c and added short comment describes what it represents. - Removed obsolete comments left over from working session; added a brief description about the situation and need to modify currentBodyCrc32c in the delete case.
Configuration menu - View commit details
-
Copy full SHA for 136e54a - Browse repository at this point
Copy the full SHA 136e54aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bb9da2 - Browse repository at this point
Copy the full SHA 1bb9da2View commit details
Commits on Mar 25, 2020
-
Configuration menu - View commit details
-
Copy full SHA for f1a2584 - Browse repository at this point
Copy the full SHA f1a2584View commit details
Commits on Mar 27, 2020
-
CBG-752: SGCollect avoid unnecessary unzip (#4541)
* CBG-752: SGCollect avoid unnecessary unzip * Address PR comments
Configuration menu - View commit details
-
Copy full SHA for 8084478 - Browse repository at this point
Copy the full SHA 8084478View commit details
Commits on Apr 1, 2020
-
CBG-812 - Fixes infinite loop caused by stale view query when running…
Configuration menu - View commit details
-
Copy full SHA for 759cf17 - Browse repository at this point
Copy the full SHA 759cf17View commit details
Commits on Apr 7, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 86c4c4c - Browse repository at this point
Copy the full SHA 86c4c4cView commit details
Commits on Apr 8, 2020
-
CBG-625 - Integration Test Bucket Pooling (#4493)
This speeds up full integration test runs significantly, by moving the bucket setup/teardown into an async worker which gets buckets ready in the background while tests are running using a different bucket. ## Usage: ``` export SG_TEST_BACKING_STORE=Couchbase export SG_TEST_COUCHBASE_SERVER_URL=couchbase://localhost go test -v -p=1 -count=1 ./... ``` ### Configuration #### Existing - `SG_TEST_BACKING_STORE` (default `Walrus`) - Can be set to `Couchbase` to enable integration tests - `SG_TEST_COUCHBASE_SERVER_URL` (default `http://localhost:8091`) - The connection string to connect with Couchbase Server #### New - `SG_TEST_USERNAME` (default `"Administrator"`) - The username to use when connecting to the test server - `SG_TEST_PASSWORD` (default `"password"`) - The password to use when connecting to the test server - `SG_TEST_BUCKET_POOL_SIZE` (default `3`) - Specify how many buckets to create and use. - `SG_TEST_BUCKET_QUOTA_MB` (default `150`) - Specify how many MB each bucket's RAM quota should be - `SG_TEST_BACKING_STORE_RECREATE` (default `false`) - Drops any existing test buckets, and creates new ones before continuing to add them to the pool. If this is not set, previous buckets are just readied as normal. - `SG_TEST_BUCKET_POOL_PRESERVE` (default `false`) - In the event of a failing test, the bucket used is not emptied and put back into the pool. This may result in exhaustion of buckets if more tests fail than the pool size. - `SG_TEST_BUCKET_POOL_DEBUG` (default `false`) - If "true", verbose bucket pool logging is turned on, to see what is happening to each bucket whilst running. - `SG_TEST_DISABLE_GSI` - Always set to true until CBG-818 --- * CBG-625 - Add bucket pooling test framework. * Simplify LoggingBucket log code, and include bucket name in log context * Prevent test failures when using walrus buckets * Check for TestBucket pointer in AsGoCBBucket * Fix WaitGroup data race by incrementing counter before sending bucket over bucketReadierQueue * Prevent data race with multiple concurrent cluster.Authenticate() calls by using a pre-authed cluster reference * Fix data race around initialisation of bucketReadierWaitGroup * Add getTestKeyNamespace to force unique doc IDs for xattr tests (avoids KV tombstone issues) * Increase timeout on retry loop for WaitForNumDocsViaChanges * Bump gocb/gocbcore for cluster ops pre-bucket open * Add SG_TEST_USE_VIEWS flag, but force it to be true all the time until 6.5.1 * Fix TestQuerySequencesStatsN1ql bucket type/view check * Use TestsUseViews in RestTester setup * Avoid vet catching unreachable code * Use TestsUseViews for ServerContext test * rename TestsUseViews to TestsDisableGSI and use in PostUpgrade * Handle View and Query stats in TestTombstoneCompaction * Bump bucket pool size from 100MB to 150MB * Parameterise bucket quota * Improve comments, rename things to be TBP scoped, rearrange to tidy * More cleanup * Tweak values in TestAddRawTimeoutRetry to avoid exceeding 150MB bucket quota, whilst still reproducing issue * Add retry loop around UpsertDesignDocument to handle sporadic Erlang 500 errors * Bump sg-bucket/walrus revisions * Handle non-nil empty error from gocb's GetBuckets for 401 status code * Add SG_TEST_USERNAME/SG_TEST_PASSWORD env vars * Add benchmark for GetCallersName * Skip printStats if no buckets opened (e.g. benchmarks) * Remove unused GetTestBucketSpec * Remove alignment chars from test logging * Add comments for unused functions * Drop default test pool size to 3 * Use t.Name() from getTestKeyNamespace * Simplify document keys in single-doc tests * Remove unnesesary query result Close * Clean up TestBucketPool naming/API * Move primary index creation out into test-only code * Make mockClaims expire far into the future * Fix missed InitializeIndex paramter removal * Refer to global TestBucketPool from db TestMain * Unskip TestPostUpgradeIndexesSimple
Configuration menu - View commit details
-
Copy full SHA for b530db3 - Browse repository at this point
Copy the full SHA b530db3View commit details -
CBG-763 Avoid race in cache compaction start (#4548)
Switch to compareAndSwap when toggling compactRunning on channelCacheImpl
Configuration menu - View commit details
-
Copy full SHA for 2b5c83f - Browse repository at this point
Copy the full SHA 2b5c83fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a92d84 - Browse repository at this point
Copy the full SHA 1a92d84View commit details
Commits on Apr 14, 2020
-
CBG-808: Add LiteCore tests (#4546)
* CBG-808: Add LiteCore tests
Configuration menu - View commit details
-
Copy full SHA for f61cd2c - Browse repository at this point
Copy the full SHA f61cd2cView commit details
Commits on Apr 20, 2020
-
CBG-814 Do not prepend filtered query results to channel cache (#4554)
The change to include the active-only criteria in the N1QL query, instead of post-cache retrieval filtering, resulted in invalid cache contents. Active-only query results should not be cached.
Configuration menu - View commit details
-
Copy full SHA for d95a0d3 - Browse repository at this point
Copy the full SHA d95a0d3View commit details -
CBG-825: Allow session create with invalid session (#4555)
* CBG-825: Allow session create with invalid session * Clarify comments * Switch to use publicPrivs
Configuration menu - View commit details
-
Copy full SHA for 6b97c31 - Browse repository at this point
Copy the full SHA 6b97c31View commit details
Commits on Apr 27, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 39bc492 - Browse repository at this point
Copy the full SHA 39bc492View commit details -
CBG-801: Auto-generated OIDC callback URL should include provider whe…
…n non-default (#4551) * CBG-801: Auto-generated OIDC callback URL should include provider when non-default * CBG-801: Added changes to handle updating the provider value * CBG-801: Updated the error code returned by failures to set parameters to URL query string * CBG-801: Added changes in getOIDCCallbackURL to use SetURLQueryParam while building the callback URL * CBG-801: Changes track URL parsing errors and test case for provider name that would need URL encoding. - Added test case for a provider name that would need URL encoding. - Added changes to track underlying error * Fixed issue in adding provider to callback URL and included Unit tests * CBG-801: Handle error when writing mocked response body for discovery endpoints in TestGetOIDCCallbackURL * CBG-801: Revised getOIDCCallbackURL to remove nesting if clauses while building the callback URL.
Configuration menu - View commit details
-
Copy full SHA for 6862817 - Browse repository at this point
Copy the full SHA 6862817View commit details
Commits on Apr 28, 2020
-
CBG-821 Query limit for channel queries (#4557)
Adds query pagination for channel queries triggered by changes processing. Default query limit for pagination is 5000, and can be modified with a new ‘query_limit’ config property in channel cache config. Pagination is done while building the per-channel feed (go-channel). This avoids storing the entire cross-query resultset in memory, allows streaming of results as soon as the first query completes, and optimizes interaction with any changes request limit. This has implications for cache warming - only the last (query_limit) entries will be prepended to the cache per changes request.
Configuration menu - View commit details
-
Copy full SHA for c2fbffd - Browse repository at this point
Copy the full SHA c2fbffdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b08317 - Browse repository at this point
Copy the full SHA 6b08317View commit details
Commits on May 1, 2020
-
Configuration menu - View commit details
-
Copy full SHA for f6b5966 - Browse repository at this point
Copy the full SHA f6b5966View commit details
Commits on May 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 0a64ba8 - Browse repository at this point
Copy the full SHA 0a64ba8View commit details
Commits on May 6, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a4880c8 - Browse repository at this point
Copy the full SHA a4880c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8071457 - Browse repository at this point
Copy the full SHA 8071457View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac2ee20 - Browse repository at this point
Copy the full SHA ac2ee20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21975e2 - Browse repository at this point
Copy the full SHA 21975e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26527ca - Browse repository at this point
Copy the full SHA 26527caView commit details -
Configuration menu - View commit details
-
Copy full SHA for a28e28f - Browse repository at this point
Copy the full SHA a28e28fView commit details
Commits on May 7, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4fa7d54 - Browse repository at this point
Copy the full SHA 4fa7d54View commit details
Commits on May 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 82489a3 - Browse repository at this point
Copy the full SHA 82489a3View commit details
Commits on May 13, 2020
-
Replace GetTestKeyNamespace with t.Name (#4572)
* Make GetTestKeyNamespace public * Remove getTestKeyNamespace(t) in favour of t.Name()
Configuration menu - View commit details
-
Copy full SHA for 8c57c2b - Browse repository at this point
Copy the full SHA 8c57c2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 029eae4 - Browse repository at this point
Copy the full SHA 029eae4View commit details
Commits on May 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c1674e6 - Browse repository at this point
Copy the full SHA c1674e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 717fe5f - Browse repository at this point
Copy the full SHA 717fe5fView commit details
Commits on May 15, 2020
-
Add x509 test framework and happy-path rountrip write tests (#4579)
* Expose pool bucket cred methods * Add x509 test framework * Split into util and tests file * configurable SSH username * Enable optional X.509 Client certs in CBS, skip failing CBG-844 test * Ignore errors from resp.Body.Close() * clarify error messages * Undo node rename approach, enforce tests have required hostname set before running * Fix default port handling * Adopt comments from #4577 into here, and remove unused function * assert on error returned from teardown * Rename the basic auth REST API URL helper * Tweak comments for couchbaseNodeConfiguredHostname
Configuration menu - View commit details
-
Copy full SHA for c2d2869 - Browse repository at this point
Copy the full SHA c2d2869View commit details -
Verification of new OIDC coverage against the old library (#4575)
* Add go-jose.v2 for fixing the build failure and running the coverage * Resolve merge conflicts in base/util_testing.go * Verification of new OIDC coverage against the old library * oidc-coverage: Add wantError struct to assert the response * oidc-coverage: Change token expiry assertion * oidc-coverage: Add forceAuthError, forceRefreshError fields in the test struct and remove the switch conditional processing. - Additional functions to return a provider in the give name with different settings; mockProvider, mockProviderWithRegister, mockProviderWithRegisterWithAccessToken. - Remove 'mock' prefix on the function names (e.g. this can just be discoveryHandler, authHandler, tokenHandler), to remove redundancy and ambiguity. - Revise code comments - Rename 'wantError' to 'forceError' and 'wantErrKind' to 'forceErrorType'. * oidc-coverage: Change error message text to handle 'no such host' and 'i/o timeout' error * oidc-coverage: Remove TestFetchCustomProviderConfigWithBadURL; it doesn't add any value * oidc-coverage: Additional unit tests that covers registered user authentication
Configuration menu - View commit details
-
Copy full SHA for 97930a9 - Browse repository at this point
Copy the full SHA 97930a9View commit details
Commits on May 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 039182b - Browse repository at this point
Copy the full SHA 039182bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d5b30d - Browse repository at this point
Copy the full SHA 1d5b30dView commit details
Commits on May 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 0617d01 - Browse repository at this point
Copy the full SHA 0617d01View commit details -
CBG-804: OpenID Connect Library Upgrade (#4581)
* CBG-804: OpenID Connect Library Upgrade * CBG-804: Fix status codes to handle errors in auth and refresh scenarios - Remove gocbconnstr dependency changes committed against this PR from manifest file. - Remove client ID empty check which is obsolete. - Return status 500 internal server error when there is any failure in auth/refresh token exchange. - Return status 401 unauthorized error when no token_id is received from OAuth server in auth/refresh responses. - Fix the token expiration time sent from fake OAuth server and correct the assertion logic. * CBG-804: Status response correction against token exchange and auth failure scenarios * CBG-804: Check the token expiry is within 5 seconds of the expected value for auth and refresh responses
Configuration menu - View commit details
-
Copy full SHA for 0674d5e - Browse repository at this point
Copy the full SHA 0674d5eView commit details
Commits on May 21, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 368de03 - Browse repository at this point
Copy the full SHA 368de03View commit details -
CBG-877: Remove inappropriate logging warning related JSON parsing fr…
…om ReadJSONFromMIME when request body is empty (#4587)
Configuration menu - View commit details
-
Copy full SHA for 790d3da - Browse repository at this point
Copy the full SHA 790d3daView commit details
Commits on May 22, 2020
-
CBG-876: Include Bearer prefix when sending token base authentication… (
#4586) * CBG-876: Include Bearer prefix when sending token base authentication request in OIDC E2E tests - Move getRSASigner() from util_testing.go to oidc_test.go. - Include Bearer prefix when sending token base authentication request in OIDC E2E tests. - Attach public keys and signer to the mockAuthServer. - Add keysHandler to expose the public keys to validate a JSON Web Token (JWT) issued. - Include makeToken method on mockAuthServer to creates a default token. - E2E test that checks OpenID Connect Implicit Flow. * CBG-876: Fix the assertion error message "session expiry is not within 5 seconds of 24 hours" * CBG-876: Refactor makeToken and include additional coverage - Add comments against BearerToken stating that it is used for setting JWT token type as well as the prefix for the Authorization HTTP header. - Refactor makeToken method to keep one property per line while building the claims for making auth token. - Yeah, Last time the it was falling under the Guest user flow instead of validating the Bearer token and since the Guest user has access to everything, it was not complaining about any "login issue" inside checkAuth(), returning a successful response from db endpoint and eventually all those tests got succeeded. After adding the changes for sending Bearer token, I've gone through the E2E workflow and confirmed that the JWT token we are sending during Implicit Flow is undergoing successful validation. But when I was going through this review comments, I did realize that the test require an additional fix that is disabling the Admin Party when spinning up the fake SG server at the start of the test. This will cover the negative scenario; the test will fail if we send a valid token with "Bearer " prefix. - Refactor getCookie function to use enhanced for loop. - Since we're already checking whether the DefaultCookieName exists, skip the check for kDefaultSessionTTL and make sure the response body has the expected details like username, channels, authentication_handlers etc. - Refactor makeToken method to accept claimSet which contains both primary and secondary claims to make it convenient to adjust claims from the caller for specific use cases. - Include additional unit test cases to cover the edge cases.
Configuration menu - View commit details
-
Copy full SHA for 799a906 - Browse repository at this point
Copy the full SHA 799a906View commit details
Commits on May 26, 2020
-
CBG-779: Add ActiveReplicator APIs and implement blipsync (#4588)
* Pull shared BLIP code into new replicator package * CBG-779 and CBG-780: Add ActiveReplicator APIs and implement blipsync * Add basic ActiveReplicator test * Remove sleep, defer Close() * Use public REST API with user and rename test * Remove old comment (and try to force GitHub to update the PR) * Address PR comments * Automatically connect to target on ActiveReplicator Start
Configuration menu - View commit details
-
Copy full SHA for d49174d - Browse repository at this point
Copy the full SHA d49174dView commit details
Commits on May 27, 2020
-
CBG-770-prereq Refactor heartbeater to support multiple listeners (#4590
) * CBG-770-prereq Refactor heartbeater to support multiple listeners The existing heartbeat implementation was tightly coupled with a single listener (cbgt). Refactored to support sharing of a single heartbeater among multiple listeners. Simplified heartbeater interface to better encapsulate functionality. For shared heartbeat, a common node ID needs to be used for both heartbeater and its listeners - moved this from cbgt up to databaseContext. * Cleanup/fixes based on PR feedback
Configuration menu - View commit details
-
Copy full SHA for d406a56 - Browse repository at this point
Copy the full SHA d406a56View commit details -
Remove unsigned_id_token option that is no longer in use after OpenID…
… Connect library upgrade (#4591)
Configuration menu - View commit details
-
Copy full SHA for 216dd52 - Browse repository at this point
Copy the full SHA 216dd52View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5f50c7 - Browse repository at this point
Copy the full SHA b5f50c7View commit details -
CBG-820: Add state for OIDC auth code authentication (#4582)
* CBG-820: Maintain state between the OpenID Connect authentication request and the callback - Add disable_callback_state option to determines whether or not to maintain state between the Authentication request and the callback. - Add callback_state_cookie_http_only to determine whether or not to make the callback state cookie inaccessible to JavaScript's - - Document.cookie API to mitigate cross-site scripting (XSS) attacks. - Add 'sg-oidc-state' cookie to maintain the state token with a duration of 5 minutes. - Introduce ErrNoStateCookie, ErrStateMismatch, ErrReadStateCookie errors for callback state error handling. - Set state parameter to prevent cross-site request forgery (CSRF) when DisableCallbackState is not enabled. - Validate state parameter to prevent cross-site request forgery (CSRF) when callback state is enabled. - Delete the state cookie on successful state validation. - Add an error type invalidStateErr to force the /auth API to return an invalid state token in the callback URL for unit testing. - Add cookieJar to HttpClient instance to insert relevant cookies into every outbound Request and update it with the cookie values of every inbound Response. - Add coverage for the following scenarios: - Successful new user authentication with HttpOnly cookie enabled. - Successful new user authentication with HttpOnly cookie enabled. - Successful new user authentication with callback state disabled. - Unsuccessful new user authentication against CSRF attack. - Successful registered user authentication with HttpOnly cookie enabled. - Successful registered user authentication with callback state disabled. - Unsuccessful registered user authentication against CSRF attack. * CBG-820: Fix the comments over written while resolving merge conflict on rebase against master * CBG-820: make the callback state cookie always inaccessible to JavaScript's Document.cookie API * CBG-820: Refactor setSateCookie method and rename to makeStateCookie
Configuration menu - View commit details
-
Copy full SHA for be858d5 - Browse repository at this point
Copy the full SHA be858d5View commit details
Commits on May 28, 2020
-
CBG-800: OnDemandImportForWrite migrate handling (#4553)
* CBG-800: OnDemandImportForWrite migrate handling * Address PR comments * Fix test and added check * Better sync property check * Address PR comments * Reworked handling * Work on test * Run callback once * Temporary PoC test * Move test to use leaky bucket * Upgrade logging for paniced test * Rollback logging change * Address PR comments * Update manifest
Configuration menu - View commit details
-
Copy full SHA for 2d24bb0 - Browse repository at this point
Copy the full SHA 2d24bb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27f9b31 - Browse repository at this point
Copy the full SHA 27f9b31View commit details
Commits on May 29, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 261e857 - Browse repository at this point
Copy the full SHA 261e857View commit details -
Add project-wide golangci-lint config (#4598)
* Add golangci-lint config file * Disable goconst linting in test files
Configuration menu - View commit details
-
Copy full SHA for 8db1a1f - Browse repository at this point
Copy the full SHA 8db1a1fView commit details -
Heartbeat registration and dropped node handling for sg-replicate (#4597
Configuration menu - View commit details
-
Copy full SHA for 7b564d9 - Browse repository at this point
Copy the full SHA 7b564d9View commit details
Commits on Jun 1, 2020
-
CBG-783-prereq-2a: Move REST-specific code out of generateChanges (#4594
Configuration menu - View commit details
-
Copy full SHA for 0f36717 - Browse repository at this point
Copy the full SHA 0f36717View commit details -
CBG-783-prereq-3: Move blipSyncContext into replicator package (#4595)
* Move blipSyncContext into replicator package * Pull latest changes from #4594
Configuration menu - View commit details
-
Copy full SHA for 5c17e6c - Browse repository at this point
Copy the full SHA 5c17e6cView commit details
Commits on Jun 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 72b2092 - Browse repository at this point
Copy the full SHA 72b2092View commit details
Commits on Jun 3, 2020
-
CBG-783: Initial SGR2 pull replication implementation (#4599)
* SGR2: Initial pull replication * Rename BlipSyncContext context ID parameter * Minor tidy of unused struct field * Simplify by only setting blipSyncContext field * Use db.SequenceID type instead of uint64 for ActiveReplicator since * Add all missing subChanges params, and Rename BidirectionalActiveReplicator to ActiveReplicator * Rename PassiveDB to PassiveDBURL * Rename variables for consistency after Struct/Field renames
Configuration menu - View commit details
-
Copy full SHA for 25ddd61 - Browse repository at this point
Copy the full SHA 25ddd61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97be2da - Browse repository at this point
Copy the full SHA 97be2daView commit details -
Remove hard-coded state parameter value from test provider and return…
… it along with auth code (#4602)
Configuration menu - View commit details
-
Copy full SHA for 354828f - Browse repository at this point
Copy the full SHA 354828fView commit details
Commits on Jun 5, 2020
-
CBG-893 Expand waitForIndex for more error cases (#4605)
* Expand waitForIndex for more error cases Modifies waitForIndex to retry on all errors. Indefinite retry for timeouts, backoff retry for all other errors. * Reduce max retry for a better balance of SG retry and service retry.
Configuration menu - View commit details
-
Copy full SHA for 4e4adcd - Browse repository at this point
Copy the full SHA 4e4adcdView commit details -
Reenable test active replicator pull basic (#4606)
* Reenable TestActiveReplicatorPullBasic * Bump go-blip manifest * Update manifest/default.xml
Configuration menu - View commit details
-
Copy full SHA for 47ac8dd - Browse repository at this point
Copy the full SHA 47ac8ddView commit details
Commits on Jun 8, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 21569cd - Browse repository at this point
Copy the full SHA 21569cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38fd9f3 - Browse repository at this point
Copy the full SHA 38fd9f3View commit details
Commits on Jun 9, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 5b4a7a6 - Browse repository at this point
Copy the full SHA 5b4a7a6View commit details -
Improve callback state cookie error handling and notify clients to su…
…pport cookies when OIDC callback state is enabled. (#4611)
Configuration menu - View commit details
-
Copy full SHA for a3c27c9 - Browse repository at this point
Copy the full SHA a3c27c9View commit details
Commits on Jun 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a3e81d9 - Browse repository at this point
Copy the full SHA a3e81d9View commit details -
CBG-782 - Add pull replicator checkpointing (#4613)
* Send getCheckpoint to set since sequence before starting pull replication * Handle checkpointing from ActivePullReplicator * minor test tidy up * Add pull replicator checkpointing * Implement checkpoint ID hash * Bump walrus manifest for PR branch * Bump walrus manifest revision for merged PR * Address PR comments * Fix maxI handling Setting maxI as &i incremented maxI even when breaking out of the loop. Switched back to int, initialized to -1. * Use default checkpoint interval if not specified in config Co-authored-by: Adam Fraser <adam.fraser@couchbase.com>
Configuration menu - View commit details
-
Copy full SHA for 01e7a19 - Browse repository at this point
Copy the full SHA 01e7a19View commit details -
Integrate replicator package into db (#4614)
Avoids cyclical dependencies between ActiveReplicator's use of a DB instance, and DB's collection of active replications. Straight move for most files, the only exception is that the contents of replicator/changes.go were appended to db/changes.go.
Configuration menu - View commit details
-
Copy full SHA for 3daf1bd - Browse repository at this point
Copy the full SHA 3daf1bdView commit details
Commits on Jun 15, 2020
-
CBG-882 Align channels ORDER BY with index (#4615)
* Update ORDER BY to align with index * Avoid extra whitespace when active only is not being used
Configuration menu - View commit details
-
Copy full SHA for 7e74819 - Browse repository at this point
Copy the full SHA 7e74819View commit details
Commits on Jun 16, 2020
-
CBG-838: Add sync_gateway user check (#4616)
* CBG-838: Add sync_gateway user check * Add user definition too
Configuration menu - View commit details
-
Copy full SHA for 1f2117f - Browse repository at this point
Copy the full SHA 1f2117fView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa645ed - Browse repository at this point
Copy the full SHA fa645edView commit details -
CBG-880: SGCollect Python3 compatibility (#4610)
* CBG-880: SGCollect Python3 compatibility * Address PR comments * Upload fixes * Remove remaining double parentheses
Configuration menu - View commit details
-
Copy full SHA for 7e08784 - Browse repository at this point
Copy the full SHA 7e08784View commit details
Commits on Jun 17, 2020
-
CBG-864: Use addJSON errors and detection change (#4617)
* CBG-864: Use addJSON errors and detection change * Add connection reset check * Switch error check back to strings
Configuration menu - View commit details
-
Copy full SHA for 943118d - Browse repository at this point
Copy the full SHA 943118dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ead5e0 - Browse repository at this point
Copy the full SHA 5ead5e0View commit details
Commits on Jun 19, 2020
-
CBG-767-prereq Implement replication lifecycle features (#4620)
* Refactor getOrAddDatabaseFromConfig for clarity Moved generation of databaseContextOptions into helper method to clarify the sequence of operations during database creation. * Connect replication API with active replicator Initialize config-based replications on startup, start replications on updated config.
Configuration menu - View commit details
-
Copy full SHA for c44d22c - Browse repository at this point
Copy the full SHA c44d22cView commit details
Commits on Jun 22, 2020
-
CBG-768 Report replicationStatus for active replications (#4621)
* CBG-768 Report stats for active replications Implement _replicationStatus for local, active replications. Non-active replication status is still stubbed out pending CBG-909. * Fix for replications assigned on startup Previously were not being added to activeReplications. Includes additional diagnostic logging.
Configuration menu - View commit details
-
Copy full SHA for 6a159ff - Browse repository at this point
Copy the full SHA 6a159ffView commit details -
CBG-774 ConflictResolverFunc definition and API (#4622)
* ConflictResolverFunc definition and API Adds ConflictResolverFunc API, implementations of default/localWins/RemoteWins, and constructor to return function based on config value. * Add test for default conflict resolver
Configuration menu - View commit details
-
Copy full SHA for c120544 - Browse repository at this point
Copy the full SHA c120544View commit details -
CBG-914 - Implement basic push replication (#4623)
* CBG-914 Implement basic push replication * Rip out unused checkpointer code * Restore accidental removal of constructor * TestActiveReplicatorBlipsync now opens 2 blipsync connections (PushAndPull) * Run sendChanges in the push replicator in a goroutine
Configuration menu - View commit details
-
Copy full SHA for 9d91250 - Browse repository at this point
Copy the full SHA 9d91250View commit details
Commits on Jun 23, 2020
-
CBG-777 Javascript custom conflict resolver (#4626)
* CBG-777 Javascript custom conflict resolver Javascript custom conflict resolver taking a conflict as input, and returning a document body. * Whitespace fix * Apply suggestions from code review Co-authored-by: Ben Brooks <ben.brooks@couchbase.com>
Configuration menu - View commit details
-
Copy full SHA for e181625 - Browse repository at this point
Copy the full SHA e181625View commit details -
CBG-915 - Refactor blip.sendChanges for generic options parameter (#4624
Configuration menu - View commit details
-
Copy full SHA for 73f2a8a - Browse repository at this point
Copy the full SHA 73f2a8aView commit details
Commits on Jun 24, 2020
-
CBG-778 Invocation of default policy from custom conflict resolver (#…
…4627) * CBG-778 Invocation of default policy from custom conflict resolver Supports calling defaultPolicy(conflict) from a custom conflict resolver in order to perform default conflict resolution. * Whitespace cleanup * Update sg-bucket revision for merged PR Co-authored-by: Ben Brooks <ben.brooks@couchbase.com>
Configuration menu - View commit details
-
Copy full SHA for a779ea4 - Browse repository at this point
Copy the full SHA a779ea4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45a7bf6 - Browse repository at this point
Copy the full SHA 45a7bf6View commit details
Commits on Jun 25, 2020
-
CBG-767 Adds adhoc flag to replicationConfig (#4631)
* Adds adhoc flag to replicationConfig Currently just a flag, behaviour when replications are stopped is pending CBG-924. * Fix copy/paste error Co-authored-by: Ben Brooks <ben.brooks@couchbase.com>
Configuration menu - View commit details
-
Copy full SHA for a280c48 - Browse repository at this point
Copy the full SHA a280c48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21421c0 - Browse repository at this point
Copy the full SHA 21421c0View commit details -
CBG-916 - SGR2 Push checkpointing (#4629)
* Rename stats accessors for consistency * Initial implementation of push checkpointing * Share common checkpointer code * Some more tidy up (removed unused functions) * Remove interim changes * Rename callbacks and move pre-response callback to be after a successful send
Configuration menu - View commit details
-
Copy full SHA for 197aa36 - Browse repository at this point
Copy the full SHA 197aa36View commit details -
Add /_debug/fgprof endpoint (#4635)
* Add fgprof debug endpoint * Use standard debug seconds query param * Add temporary felixge manifest remote for fgprof * Add google/pprof dependency * Switch to mirrored repos
Configuration menu - View commit details
-
Copy full SHA for 4526e2f - Browse repository at this point
Copy the full SHA 4526e2fView commit details -
Add test to pull tombstone in SGR2 (#4636)
* Add test to pull tombstone in SGR2 * Wait for change on rt1
Configuration menu - View commit details
-
Copy full SHA for a42e2f6 - Browse repository at this point
Copy the full SHA a42e2f6View commit details
Commits on Jun 26, 2020
-
CBG-786 - Purge document on removal when PurgeOnRemoval flag is set (#…
…4634) * Purge document on removal when PurgeOnRemoval flag is set * Set checkpoints for purged docs * Include stat for SGR2 docs_purged
Configuration menu - View commit details
-
Copy full SHA for bc3c0c3 - Browse repository at this point
Copy the full SHA bc3c0c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fece44 - Browse repository at this point
Copy the full SHA 7fece44View commit details -
CBG-835 - ActiveReplicator heartbeat mechanism (via websocket ping fr…
…ames) (#4633) * Wire up config options * Bump go-blip manifest * Bump go-blip manifest * Bump go-blip manifest * Bump go-blip manifest * Remove duplicate blip.NewContext/NewBlipSyncContext and tidy up Checkpointer context * WebsocketPingInterval config tidy from PR comments * Change websocket config name * Remove old/unused constant * Remove old field from ServerConfig * Update field name to _secs
Configuration menu - View commit details
-
Copy full SHA for 12367f5 - Browse repository at this point
Copy the full SHA 12367f5View commit details
Commits on Jun 29, 2020
-
Use replicator-specific logging context for active replications (#4641)
Passive replication continues to use the database's context, active replication uses a replication-specific context for additional logging context. Also removes omitempty to always display continuous=true/false in _replication response.
Configuration menu - View commit details
-
Copy full SHA for e6f397c - Browse repository at this point
Copy the full SHA e6f397cView commit details -
CBG-802: Being able to configure OpenID Connect Test Provider with HT…
…TPS (#4628) * CBG-802: Being able to configure OpenID Connect Test Provider with HTTPS * CBG-802: Clone the default http.Transport and apply selective changes to the copy while setting insecureSkipVerify * CBG-805: Check whether the transport.TLSClientConfig is nil, and update the existing if non-nil
Configuration menu - View commit details
-
Copy full SHA for e97ab8b - Browse repository at this point
Copy the full SHA e97ab8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6011418 - Browse repository at this point
Copy the full SHA 6011418View commit details -
CBG-785 SGR2 conflict resolution (#4640)
* Invoke conflictResolver during PutExistingRev Modify PutExistingRev to support invocation of conflict resolver when provided. Adds wrapper for ConflictResolverFunc to identify whether result is local/remote/merge based on revID comparison. * Updating revision tree based on conflict resolution outcome * Fixes for pushAndPull with conflict resolution SGR2 push replications need to send revisions with the noconflicts property set to true in order to avoid causing branched revision trees on the remote when the remote Sync Gateway is running with allowConflicts=true. Adds unit test to validate pushAndPull results. * Error check fix * Updates based on PR feedback Removed unused code, reworked assignment of conflict resolver to replication to ensure it's only set for pull replications.
Configuration menu - View commit details
-
Copy full SHA for 102947a - Browse repository at this point
Copy the full SHA 102947aView commit details
Commits on Jun 30, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 09edec3 - Browse repository at this point
Copy the full SHA 09edec3View commit details -
Adds batch_size config parameter, passes through to activeReplicator.
Configuration menu - View commit details
-
Copy full SHA for 54f7116 - Browse repository at this point
Copy the full SHA 54f7116View commit details -
Specify docIDs in subChanges only when we have any to send (#4645)
* Specify docIDs in subChanges only when we have any to send * Handle marshal error when sending subChanges
Configuration menu - View commit details
-
Copy full SHA for b5ed670 - Browse repository at this point
Copy the full SHA b5ed670View commit details
Commits on Jul 1, 2020
-
CBG-930 Enable delta sync flag for sg-replicate2 (#4646)
If delta sync is disabled for an sg-replicate replication, override the calculated sgCanUseDeltas value for the replication's blip sync context. Note that this implies that pull replications from a remote that supports delta sync will still not use deltas unless deltas are enabled on the local node. This matches CBL behaviour today (we don't accept deltas from CBL if deltas aren't enabled for the SG database).
Configuration menu - View commit details
-
Copy full SHA for 80c70c9 - Browse repository at this point
Copy the full SHA 80c70c9View commit details
Commits on Jul 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for db0f4a0 - Browse repository at this point
Copy the full SHA db0f4a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac6ef4a - Browse repository at this point
Copy the full SHA ac6ef4aView commit details
Commits on Jul 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for cd739e2 - Browse repository at this point
Copy the full SHA cd739e2View commit details
Commits on Jul 6, 2020
-
CBG-937 - More accurately track last_seq stats, and move old stat to …
…last_seq_checkpointed (#4652)
Configuration menu - View commit details
-
Copy full SHA for 772cc23 - Browse repository at this point
Copy the full SHA 772cc23View commit details -
CBG-923 - Add rev response callback (#4653)
* Add rev response callback * Invoke callback for all response types * Address PR feedback * Tweak stat reporting * Add doc_write_conflict stat
Configuration menu - View commit details
-
Copy full SHA for 76e121d - Browse repository at this point
Copy the full SHA 76e121dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99dfc0c - Browse repository at this point
Copy the full SHA 99dfc0cView commit details
Commits on Jul 7, 2020
-
Implement includeConfig on replicationStatus APIs (#4654)
Includes config definition in GET replicationStatus response when includeConfig=true query parameter is set.
Configuration menu - View commit details
-
Copy full SHA for 8ce9a0c - Browse repository at this point
Copy the full SHA 8ce9a0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f5a72d - Browse repository at this point
Copy the full SHA 7f5a72dView commit details -
CBG-805: Update test OIDC provider to simulate real-world token (#4639)
Configuration menu - View commit details
-
Copy full SHA for d9aa6e5 - Browse repository at this point
Copy the full SHA d9aa6e5View commit details
Commits on Jul 8, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 7249ed3 - Browse repository at this point
Copy the full SHA 7249ed3View commit details -
CBG-944 Update replication state on one-shot completion (#4658)
* One-shot stopping for pull replication * One-shot stopping for push replication * Initialize active replicator state to stopped * Test fixes * Avoid race on concurrent Stop, Stop and Replace * Fix races in activeReplicator Switch to a single lock for the replicator, and use for access to any internal properties.
Configuration menu - View commit details
-
Copy full SHA for 272b606 - Browse repository at this point
Copy the full SHA 272b606View commit details -
Fix deadlock on replication stop (#4660)
Callback invocation on replication completion was attempting to re-acquire the activeReplicator lock. Switched onComplete to be invoked after releasing the lock, and also refactored to avoid unnecessary status call on replication complete.
Configuration menu - View commit details
-
Copy full SHA for 24cf5bb - Browse repository at this point
Copy the full SHA 24cf5bbView commit details
Commits on Jul 9, 2020
-
CBG-944 Remove adhoc replications when stopped (#4661)
Remove adhoc replications that are stopped (either via _replicationStatus?action=stop, or on completion of a one-shot replication).
Configuration menu - View commit details
-
Copy full SHA for 3cae53b - Browse repository at this point
Copy the full SHA 3cae53bView commit details -
CBG-958 Delta sync config fix and stats (#4662)
* Delta sync config fix and stats Fixes config validation that was forcing replications to run with delta sync disabled, and adds stats for deltas sent/received/requested. * Simplify DeltasEnabled assignment
Configuration menu - View commit details
-
Copy full SHA for 6608896 - Browse repository at this point
Copy the full SHA 6608896View commit details
Commits on Jul 10, 2020
-
CBG-960 Delete local replication checkpoint on reset (#4663)
Co-authored-by: Sarath Kumar Sivan <4345604+sarathkumarsivan@users.noreply.github.com> Co-authored-by: Ben Brooks <ben.brooks@couchbase.com>
Configuration menu - View commit details
-
Copy full SHA for 2b0baa3 - Browse repository at this point
Copy the full SHA 2b0baa3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 701c179 - Browse repository at this point
Copy the full SHA 701c179View commit details -
CBG-963 replicationStatus filtering options (#4666)
Adds support for localOnly, activeOnly, includeError as replicationStatus API query parameters.
Configuration menu - View commit details
-
Copy full SHA for 882befb - Browse repository at this point
Copy the full SHA 882befbView commit details
Commits on Jul 11, 2020
-
Accept 0 as a valid Expires and return the discovery data as not cach… (
#4657) * Accept 0 as a valid Expires and return the discovery data as not cacheable * Set ttl=MaxProviderConfigSyncInterval if cacheable() returns error, instead of failing to initialize the metadata * Change logging level to info instead of debug while reporting cachable error
Configuration menu - View commit details
-
Copy full SHA for 7457ec9 - Browse repository at this point
Copy the full SHA 7457ec9View commit details
Commits on Jul 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for f46ce1d - Browse repository at this point
Copy the full SHA f46ce1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e56825 - Browse repository at this point
Copy the full SHA 4e56825View commit details -
CBG-905: Support using custom OIDC claim as Sync Gateway username (#4655
) * CBG-905: Support using custom OIDC claim as Sync Gateway username * CBG-906: Handle non-string values as username claim in identity token * CBG-906: Refactor handling non-string values as username claim in identity token * Update auth/oidc.go Refactor comments against username_claim Co-authored-by: Adam Fraser <adam.fraser@couchbase.com> * CBG-906: Refactor handling non-string values as username claim in identity token Co-authored-by: Adam Fraser <adam.fraser@couchbase.com>
Configuration menu - View commit details
-
Copy full SHA for d968622 - Browse repository at this point
Copy the full SHA d968622View commit details
Commits on Jul 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 64a08b8 - Browse repository at this point
Copy the full SHA 64a08b8View commit details
Commits on Jul 16, 2020
-
CBG-947 - Checkpoint revisions which are ignored by a peer (#4670)
* Checkpoint when revisions are ignored by a peer. * Add missing 'Pull' prefix in stat constant * Add specific AddIgnoredSeq method to reduce lock/unlock churn * Address PR comments * Batch push expected/alreadyKnown seq tracking * Pluralise callback names that now do batching * Final ignoredSeqs -> alreadyKnownSeqs rename
Configuration menu - View commit details
-
Copy full SHA for 6a9d087 - Browse repository at this point
Copy the full SHA 6a9d087View commit details -
CBG-948 - Update last known rev IDs when we encounter a conflict on c…
…heckpoint write (#4671) * Update last known rev IDs when we encounter a conflict on write * Move local/remote setCheckpoint retry handling into shared function * Add get/setCheckpointFn parameter names
Configuration menu - View commit details
-
Copy full SHA for b02729e - Browse repository at this point
Copy the full SHA b02729eView commit details
Commits on Jul 17, 2020
-
CBG-938 Use MaxDoubling retry for Touch, GetAndTouch (#4673)
MaxNumRetries isn't changed, so overall retry time is shorter for default spec values of MaxNumRetries and InitialRetrySleepTimeMS (by about 2s).
Configuration menu - View commit details
-
Copy full SHA for 5d33e39 - Browse repository at this point
Copy the full SHA 5d33e39View commit details
Commits on Jul 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 99bdb18 - Browse repository at this point
Copy the full SHA 99bdb18View commit details
Commits on Jul 21, 2020
-
CBG-922: Standardize text file processing across all platforms by usi…
…ng 'latin-1' encoding (#4672)
Configuration menu - View commit details
-
Copy full SHA for e965f00 - Browse repository at this point
Copy the full SHA e965f00View commit details -
CBG-980 Use context cfgSG to fire change events instead of routing th…
…rough import listener (#4675) Removed obsolete importListener.NotifyCfg, moved prefix removal into FireEvent.
Configuration menu - View commit details
-
Copy full SHA for 97dc83d - Browse repository at this point
Copy the full SHA 97dc83dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22adcc2 - Browse repository at this point
Copy the full SHA 22adcc2View commit details -
CBG-983 RevID fix for Get1xRevAndChannels (#4677)
Get1xRevAndChannels was attempting to return the transport-only revID property, which isn't set in this usage.
Configuration menu - View commit details
-
Copy full SHA for a5b2661 - Browse repository at this point
Copy the full SHA a5b2661View commit details
Commits on Jul 22, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 13dbb8b - Browse repository at this point
Copy the full SHA 13dbb8bView commit details
Commits on Jul 23, 2020
-
CBG-921 Skip _txn: prefixed documents during DCP processing (#4683)
Avoids SG interaction with transaction metadata documents. No additional handling is needed for on-demand import scenarios, as the underscore-prefixed metadata documents are not have valid SG docIDs and already can't be accessed through SG's REST API.
Configuration menu - View commit details
-
Copy full SHA for 76c898d - Browse repository at this point
Copy the full SHA 76c898dView commit details -
Configuration menu - View commit details
-
Copy full SHA for abda4aa - Browse repository at this point
Copy the full SHA abda4aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f4ba12 - Browse repository at this point
Copy the full SHA 4f4ba12View commit details
Commits on Jul 24, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 50996e3 - Browse repository at this point
Copy the full SHA 50996e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f3b9a6 - Browse repository at this point
Copy the full SHA 3f3b9a6View commit details
Commits on Jul 27, 2020
-
CBG-931 Perform all config validation at creation time (#4687)
Added missing Direction validation to ValidateReplication, reused ValidateReplication on replication start.
Configuration menu - View commit details
-
Copy full SHA for 9439da5 - Browse repository at this point
Copy the full SHA 9439da5View commit details -
CBG-920: SGR2 track pulled norev sequences for checkpointing (#4686)
* Track sequences for pulled norevs for checkpointing purposes * Move IDAndRev handling for pull replications/norev seq lookups down into checkpointer * Minor tweak for readability
Configuration menu - View commit details
-
Copy full SHA for 7fa5e2e - Browse repository at this point
Copy the full SHA 7fa5e2eView commit details -
CBG-951: Deleted documents should set _deleted:true for import filter…
… function (#4678) * CBG-951: Deleted documents should set _deleted:true for import filter function * CBG-926: Set delete property when body is both empty and non-empty and refactor unit test * CBG-926: Take a shallow copy of the body and set _deleted property the import is for delete and the body is not empty
Configuration menu - View commit details
-
Copy full SHA for 5fa3709 - Browse repository at this point
Copy the full SHA 5fa3709View commit details
Commits on Jul 29, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2f0d104 - Browse repository at this point
Copy the full SHA 2f0d104View commit details -
CBG-949: Improve error when non-upgradable HTTP request is sent to _b… (
#4690) * CBG-949: Improve error when non-upgradable HTTP request is sent to _blipsync endpoint * CBG-949: Exit early when the connection can't be switched to websocket protocol without incrementing the status * CBG-949: Fix Jenkins CI build failure due to wrong status code assertion in TestBlipSyncNonUpgradableConnection
Configuration menu - View commit details
-
Copy full SHA for 6132c1e - Browse repository at this point
Copy the full SHA 6132c1eView commit details
Commits on Jul 30, 2020
-
Do not include pointer addresses when logging heartbeat node set (#4693)
The nodeListenerMap is useful when triaging node assignment issues, but inclusion of listener pointer addresses made it less readable.
Configuration menu - View commit details
-
Copy full SHA for 8d430f0 - Browse repository at this point
Copy the full SHA 8d430f0View commit details -
CBG-972: Avoid transforming the entire config response to lower case …
…while running sgcollect (#4694)
Configuration menu - View commit details
-
Copy full SHA for 9f86bf8 - Browse repository at this point
Copy the full SHA 9f86bf8View commit details -
CBG-909 Persist replication status for non-local access (#4689)
Co-authored-by: Ben Brooks <ben.brooks@couchbase.com>
Configuration menu - View commit details
-
Copy full SHA for 08a1096 - Browse repository at this point
Copy the full SHA 08a1096View commit details -
Send 'ignoreNoConflicts' flag for SGR2 push replications (#4695)
Allows for Hydrogen to Hydrogen push replication to a peer running in no conflicts mode.
Configuration menu - View commit details
-
Copy full SHA for ce01841 - Browse repository at this point
Copy the full SHA ce01841View commit details
Commits on Aug 4, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 56eebf0 - Browse repository at this point
Copy the full SHA 56eebf0View commit details
Commits on Aug 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 930156f - Browse repository at this point
Copy the full SHA 930156fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c0bd757 - Browse repository at this point
Copy the full SHA c0bd757View commit details -
CBG-975: SG-Replicate 2: Support basic auth credentials (username/pas…
…sword) as separate config options (#4697)
Configuration menu - View commit details
-
Copy full SHA for 1781a86 - Browse repository at this point
Copy the full SHA 1781a86View commit details
Commits on Aug 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4c6979e - Browse repository at this point
Copy the full SHA 4c6979eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c81daa - Browse repository at this point
Copy the full SHA 3c81daaView commit details
Commits on Aug 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 61d731e - Browse repository at this point
Copy the full SHA 61d731eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 968dfdd - Browse repository at this point
Copy the full SHA 968dfddView commit details
Commits on Aug 14, 2020
-
Rely on dbContext/serverContext close to call bucket teardown (#4710)
* Rely on dbContext/serverContext close to call bucket teardown, avoids incorrect ordering of closing a bucket before dbContext * Avoid testBucket.Bucket pattern in Authenticator/DatabaseContext * Handle getting underlying GoCB Bucket in CouchbaseURIToHttpURL
Configuration menu - View commit details
-
Copy full SHA for 67a8599 - Browse repository at this point
Copy the full SHA 67a8599View commit details -
Configuration menu - View commit details
-
Copy full SHA for b97f2b8 - Browse repository at this point
Copy the full SHA b97f2b8View commit details
Commits on Aug 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 0a2e63e - Browse repository at this point
Copy the full SHA 0a2e63eView commit details
Commits on Aug 18, 2020
-
Configuration menu - View commit details
-
Copy full SHA for e87e95d - Browse repository at this point
Copy the full SHA e87e95dView commit details
Commits on Aug 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2f89c21 - Browse repository at this point
Copy the full SHA 2f89c21View commit details -
Rename TestRemoveObsoleteIndexOnFail test to TestRemoveObsoleteIndexO…
…nError to prevent appearing in searches for 'FAIL:' (#4713)
Configuration menu - View commit details
-
Copy full SHA for d0d138c - Browse repository at this point
Copy the full SHA d0d138cView commit details
Commits on Aug 21, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 0188f3e - Browse repository at this point
Copy the full SHA 0188f3eView commit details -
CBG-913: Migrate SGR1 checkpoints when a matching SGR2 replication ID…
… is in the config (#4706)
Configuration menu - View commit details
-
Copy full SHA for 229709d - Browse repository at this point
Copy the full SHA 229709dView commit details -
CBG-973: Avoid collecting sensitive data during sgcollect (#4704)
Co-authored-by: Adam Fraser <adam.fraser@couchbase.com>
Configuration menu - View commit details
-
Copy full SHA for d5a4b10 - Browse repository at this point
Copy the full SHA d5a4b10View commit details -
Fix data race on replicator blipSender by passing copy pointer whilst…
… lock is acquired (#4715)
Configuration menu - View commit details
-
Copy full SHA for 7ce0427 - Browse repository at this point
Copy the full SHA 7ce0427View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb10e46 - Browse repository at this point
Copy the full SHA bb10e46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d4eda5 - Browse repository at this point
Copy the full SHA 7d4eda5View commit details
Commits on Aug 24, 2020
-
CBG-1000 Wait for remote sequence allocation on cache start (#4720)
Ensure allocated sequences are used or released prior to cache start
Configuration menu - View commit details
-
Copy full SHA for d1b7cf9 - Browse repository at this point
Copy the full SHA d1b7cf9View commit details -
CBG-946: Repeated change entries on access grant to doc's previous ch…
…annel (#4714) * Working session for CBG-946 * CBG-946: Repeated change entries on access grant to doc's previous channel * CBG-946: Refactor TestPostChangesAdminChannelGrantRemoval * CBG-946: Format package imports * CBG-946: Additional coverage in TestPostChangesAdminChannelGrantRemoval * CBG-946: Fix build failures in TestGetRemovedDoc and TestPostChangesAdminChannelGrantRemoval * CBG-946: Refactor TestPostChangesAdminChannelGrantRemoval include WaitForChanges enough to avoid this fixed sleep * CBG-946: Disable sequence batching for multi-RT tests * Update rest/replication_api_test.go Co-authored-by: Ben Brooks <ben.brooks@couchbase.com> * Update rest/replication_api_test.go Co-authored-by: Ben Brooks <ben.brooks@couchbase.com> * CBG-946: Keep the deleteDoc function limited to just validating the delete via the response * CBG-946: Fix build errors Co-authored-by: Adam Fraser <adam.fraser@couchbase.com> Co-authored-by: Ben Brooks <ben.brooks@couchbase.com>
Configuration menu - View commit details
-
Copy full SHA for d33348f - Browse repository at this point
Copy the full SHA d33348fView commit details -
CBG-1012 Persist replication status with checkpoints (#4719)
* CBG-1012 Persist replication status with checkpoints Store replication status with checkpoints instead of as separate status. Supports status retrieval between nodes within a cluster, and status consistency across replication stop/start/rebalance. * Fix for test races Switch to state/error lock in a few places, add support for checkpointer to persist status and update lastLocal safely. * Error handling fix
Configuration menu - View commit details
-
Copy full SHA for 7f4ea95 - Browse repository at this point
Copy the full SHA 7f4ea95View commit details -
CBG-919: Integrated Prometheus Exporter (#4681)
* CBG-919: Integrated Prometheus Exporter * GSI and SharedBucket * Add float and delta stats * Replication stats and sync.Once * Added Value() in prep for atomic * Mutexes * Most database stats * Cache stats * Handle external expvars * Mutex GSI fix * Ensure all the names are inline with existing * Clean up * Modify when stats initialize * BLIP test tweaks * Rebase Blip Replicator Stats * Addressed some PR comments * address more * Const format for query view stat * Remove old dbStats * More addressing PR comments * Test fix * Last cleanup * Fix dbStats map data race * Rename initQueryStat * Added benchmark * Fix new tests * Added more benchmarks and switched to atomic * Replace sprintf with format * Add sgw_up for compat * Rename metrics config to be inline with others * Test fixes * Test fixes
Configuration menu - View commit details
-
Copy full SHA for 13bd94e - Browse repository at this point
Copy the full SHA 13bd94eView commit details
Commits on Aug 25, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2f225ec - Browse repository at this point
Copy the full SHA 2f225ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for a056db8 - Browse repository at this point
Copy the full SHA a056db8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d259ace - Browse repository at this point
Copy the full SHA d259aceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 77baeaf - Browse repository at this point
Copy the full SHA 77baeafView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba9ebb1 - Browse repository at this point
Copy the full SHA ba9ebb1View commit details
Commits on Aug 26, 2020
-
CBG-1022: Require replication to be stopped prior to upsert (#4729)
* CBG-1022: Require replication to be stopped prior to upsert * Address PR comment
Configuration menu - View commit details
-
Copy full SHA for 572b2d0 - Browse repository at this point
Copy the full SHA 572b2d0View commit details -
Blip response type race fix: Read full response body first (#4733)
* Read full response body before checking response type * Log for error, and apply same handling in SGR2 checkpoint response code * Apply same handling in rev response
Configuration menu - View commit details
-
Copy full SHA for 1f5e842 - Browse repository at this point
Copy the full SHA 1f5e842View commit details
Commits on Aug 27, 2020
-
Configuration menu - View commit details
-
Copy full SHA for bb31723 - Browse repository at this point
Copy the full SHA bb31723View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17a80c4 - Browse repository at this point
Copy the full SHA 17a80c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 470645a - Browse repository at this point
Copy the full SHA 470645aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c7c2ed9 - Browse repository at this point
Copy the full SHA c7c2ed9View commit details -
Fix TestTombstoneCompaction assertion of mixed int/int64 types (#4737)
* Fix assertion of mixed int/int64 types * Fix import stats init Co-authored-by: JRasagneres <jacquesrascagneres@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 07a4078 - Browse repository at this point
Copy the full SHA 07a4078View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a7f64a - Browse repository at this point
Copy the full SHA 7a7f64aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e4228f - Browse repository at this point
Copy the full SHA 0e4228fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73be6dc - Browse repository at this point
Copy the full SHA 73be6dcView commit details
Commits on Aug 28, 2020
-
Configuration menu - View commit details
-
Copy full SHA for d6d1663 - Browse repository at this point
Copy the full SHA d6d1663View commit details
Commits on Sep 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4ba8e7b - Browse repository at this point
Copy the full SHA 4ba8e7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17c0c26 - Browse repository at this point
Copy the full SHA 17c0c26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82489d9 - Browse repository at this point
Copy the full SHA 82489d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 458b3d6 - Browse repository at this point
Copy the full SHA 458b3d6View commit details -
Fix reconnect ctx race (#4745)
* Fix reconnect ctx race * Return context error value from reconnect worker for correct ConnectsAborted stats * Last reference to a.ctx in reconnect fn * Revert accidental assert -> require change
Configuration menu - View commit details
-
Copy full SHA for f5dd71a - Browse repository at this point
Copy the full SHA f5dd71aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b35b7a - Browse repository at this point
Copy the full SHA 6b35b7aView commit details -
CBG-945 Clear status on replication reset (#4746)
* New test for replication status actions * Fix reset handling Reset replication stats and checkpointer when reset is invoked. * Avoid sleep in test
Configuration menu - View commit details
-
Copy full SHA for f988a76 - Browse repository at this point
Copy the full SHA f988a76View commit details
Commits on Sep 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for d3b3229 - Browse repository at this point
Copy the full SHA d3b3229View commit details -
Configuration menu - View commit details
-
Copy full SHA for 159b953 - Browse repository at this point
Copy the full SHA 159b953View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97359f1 - Browse repository at this point
Copy the full SHA 97359f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8533ce9 - Browse repository at this point
Copy the full SHA 8533ce9View commit details -
CBG-1057: Deterministic prometheus stat label ordering (#4751)
* CBG-1057: Deterministic prometheus stat label ordering * Change to two slices
Configuration menu - View commit details
-
Copy full SHA for f093441 - Browse repository at this point
Copy the full SHA f093441View commit details -
CBG-954 - Invoke reconnect loop when BLIP/Websocket connection closes (…
…#4728) * Invoke reconnect loop when BLIP OnExitCallback is fired. * Bump go-blip manifest for branch * bump go-blip manifest * Prevent reconnect loop firing on intentional replicator stop * bump go-blip manifest for merged PR * Reverse context error check for reconnect * Fix replication rebalance races on RestTester teardown * On ActiveReplicator Stop, cancel the replicator's reconnect handling before disconnecting * Stop ActiveReplicator's reconnect handling on Complete callback * Treat empty body the way io.EOF used to be treated for BLIP changes responses * Compare stats vs. start of test instead of from zero
Configuration menu - View commit details
-
Copy full SHA for 7183d80 - Browse repository at this point
Copy the full SHA 7183d80View commit details
Commits on Sep 4, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3d0c8ab - Browse repository at this point
Copy the full SHA 3d0c8abView commit details -
Configuration menu - View commit details
-
Copy full SHA for a237d08 - Browse repository at this point
Copy the full SHA a237d08View commit details
Commits on Sep 8, 2020
-
CBG-998 Retry on ErrNotStored for xattr updates (#4760)
An insert race can return ErrNotStored (instead of ErrKeyExists) for xattr subdoc inserts. This should be routed through the standard CAS failure handling, instead of reporting an error.
Configuration menu - View commit details
-
Copy full SHA for 9d0750e - Browse repository at this point
Copy the full SHA 9d0750eView commit details -
CBG-929 - Process attachments from a merge via the sg-replicate custo…
…m conflict resolver (#4758) * Process attachments from a merge via the sg-replicate custom conflict resolver. * Wait for merged change in test * Use table driven tests for various combinations of attachment merges
Configuration menu - View commit details
-
Copy full SHA for 49ba6b9 - Browse repository at this point
Copy the full SHA 49ba6b9View commit details -
CBG-1053: Adhoc replicationStatus panic fix (#4757)
* CBG-1053: Adhoc replicationStatus panic fix * Change check condition to wait * Race fix * Address PR comment
Configuration menu - View commit details
-
Copy full SHA for b26a3db - Browse repository at this point
Copy the full SHA b26a3dbView commit details -
CBG-1035: Add Grafana and update for Hydrogen (#4755)
* CBG-1035: Add Grafana and update for Hydrogen * Additions
Configuration menu - View commit details
-
Copy full SHA for 388a335 - Browse repository at this point
Copy the full SHA 388a335View commit details
Commits on Sep 9, 2020
-
Prevent falling back to the SGR1 checkpoint for a second time (#4761)
* Prevent falling back to the SGR1 checkpoint for a second time Avoids the case where some documents may not be replicated because of SGR1 checkpoint reuse when both local and remote SGR2 checkpoints have been removed through expiry, replicator reset, bucket flush, rollback, etc. * Write SGR2 checkpoint when performing SGR1 checkpoint upgrade * Improve logging around checkpoint seq retrieval * Switch test to reset replicator instead of deleting checkpoint * Simplify common assertions
Configuration menu - View commit details
-
Copy full SHA for 30493cc - Browse repository at this point
Copy the full SHA 30493ccView commit details -
CBG-1028: Fix inconsistencies in default conflict resolver by local t…
…ombstone handling (#4756) * CBG-1028: Customer feedback:Default conflict resolver not behaving consistently * CBG-1028: Remove the methods which became obsolete after introducing table driven tests. * CBG-1028: Assert body value in requireBodyNotEmpty * CBG-1028: Adjust the requiredAdditionalRevs buffer value and incorporate the feedback on unit tests. * CBG-1028: Update the document on rt2 with the specified body values. * CBG-1028: Check for revID instead of docID in TestDefaultConflictResolverWithTombstone
Configuration menu - View commit details
-
Copy full SHA for f51d7b8 - Browse repository at this point
Copy the full SHA f51d7b8View commit details -
Fix race for allowed attachment processing (#4762)
* Fix race for allowed attachment processing Not seen this manifest in the real world, but there's a gap between sending the rev message, and adding the allowed attachments that the client will ask for. If the response gets back to us quick enough, the attachments won't be marked as allowed. * Remove allowed attachments in send error case
Configuration menu - View commit details
-
Copy full SHA for 669dfce - Browse repository at this point
Copy the full SHA 669dfceView commit details
Commits on Sep 10, 2020
-
Throttle concurrent in-flight changes requests per connection to 2 (#…
…4767) Couchbase Lite already limits the number of in-flight changes batches to prevent Sync Gateway from preparing the revs for batches too far ahead of time and having to keep them in memory before we're able to send them. This commit enforces that limit on the server side for each client, to prevent non-CBL clients from issuing too many changes requests before the revs for those batches have had chance to be sent. We keep this number >1 in order to keep the list of revs supplied for clients to allow for a continous stream of revisions to be available and prevent "batchiness" in the sync.
Configuration menu - View commit details
-
Copy full SHA for 614a081 - Browse repository at this point
Copy the full SHA 614a081View commit details -
Prevent activeSubChanges flag race when client is rapidly issuing req…
…uests (#4766) * Perform a retry loop on the active subChanges CAS operation to prevent races when a client is rapidly requesting sequential subChanges requests * Tweak CASRetry timing
Configuration menu - View commit details
-
Copy full SHA for a318a5b - Browse repository at this point
Copy the full SHA a318a5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b571358 - Browse repository at this point
Copy the full SHA b571358View commit details -
CBG-1047 Re-initialize replication when config is upserted (#4764)
Co-authored-by: JRasagneres <jacquesrascagneres@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for deea3b1 - Browse repository at this point
Copy the full SHA deea3b1View commit details -
CBG-1044: Don't trigger conflict resolution for two tombstones (#4759)
* CBG-1044: Don't trigger conflict resolution for two tombstones * Add extra test to ensure revID * Change handling and add tests * Remove sleeps * Reworked and added passive SGR2 support * Change clientType type * Address PR comments
Configuration menu - View commit details
-
Copy full SHA for 1d447a5 - Browse repository at this point
Copy the full SHA 1d447a5View commit details -
CBG-1071 Restore CBL pull attachment count/attachment bytes (#4768)
These were incorrectly swapped to the push stats as part of the stat format update.
Configuration menu - View commit details
-
Copy full SHA for e40b68f - Browse repository at this point
Copy the full SHA e40b68fView commit details -
CBG-1049: Don't tombstone an already deleted revision whilst applying…
… conflict resolution (#4763) * CBG-1049: Don't tombstone an already deleted revision whilst applying conflict resolution * CBG-1049: Assert expected tombstone revID in waitForTombstone * CBG-1049: Add additional coverage for tombstone handling when remote revision is tombstoned * CBG-1049: Format logging message * Only bypass conflict resolution for incoming tombstones when local is also a tombstone Co-authored-by: Adam Fraser <adam.fraser@couchbase.com>
Configuration menu - View commit details
-
Copy full SHA for ea82bd0 - Browse repository at this point
Copy the full SHA ea82bd0View commit details
Commits on Sep 11, 2020
-
CBG-1060 Add close waitgroup for sgReplicateManager (#4769)
sgReplicateManager.Stop() now blocks until clusterSubscribe and clusterUpdate goroutines have exited, avoiding potential races during test bucket teardown.
Configuration menu - View commit details
-
Copy full SHA for dee45fb - Browse repository at this point
Copy the full SHA dee45fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ed0c13 - Browse repository at this point
Copy the full SHA 1ed0c13View commit details
Commits on Sep 15, 2020
-
CBG-1074: Grafana README updates (#4773)
* CBG-1074: Grafana README updates * Address PR comment
Configuration menu - View commit details
-
Copy full SHA for 10132c1 - Browse repository at this point
Copy the full SHA 10132c1View commit details
Commits on Sep 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c79acc8 - Browse repository at this point
Copy the full SHA c79acc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9f12b8 - Browse repository at this point
Copy the full SHA e9f12b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a29db07 - Browse repository at this point
Copy the full SHA a29db07View commit details
Commits on Sep 17, 2020
-
Avoid race in TestSGR2TombstoneConflictHandling (#4785)
* Work on TestSGR2TombstoneConflictHandling * Require no error and nil check * Remove error assert
Configuration menu - View commit details
-
Copy full SHA for 557ec48 - Browse repository at this point
Copy the full SHA 557ec48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a70901 - Browse repository at this point
Copy the full SHA 4a70901View commit details -
CBG-1077 Avoid state reset on restarted node (#4787)
The value used to specify that a replication should start in stopped state is switched to initial_state. TargetState continues to be used internally for state transitions. Target state is set to initial state the first time a replication is added to the cfg.
Configuration menu - View commit details
-
Copy full SHA for 7b94850 - Browse repository at this point
Copy the full SHA 7b94850View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23ec88b - Browse repository at this point
Copy the full SHA 23ec88bView commit details -
PrometheusRules: Added Prometheus directory (#4789)
* PrometheusRules: Added Prometheus directory * Address PR comments * Comment out SGR1 row * Remove extra space
Configuration menu - View commit details
-
Copy full SHA for 9ae0aff - Browse repository at this point
Copy the full SHA 9ae0affView commit details -
CBG-1005: Update examples & README (#4775)
* CBG-1005: Update examples & README * Fix config * Remove old replication example * Remove file * Add a couple extra examples
Configuration menu - View commit details
-
Copy full SHA for 9b7da41 - Browse repository at this point
Copy the full SHA 9b7da41View commit details
Commits on Sep 18, 2020
-
CBG-1072 Ensure ordering of recent sequences (#4792)
Sort recent sequences prior to updating syncData.
Configuration menu - View commit details
-
Copy full SHA for eb5696d - Browse repository at this point
Copy the full SHA eb5696dView commit details
Commits on Sep 22, 2020
-
CBG-1085 Re-register node when not present on cluster update (#4797)
* CBG-1085 Re-register node when not present on cluster update When a SG node receives a cluster cfg update that doesn't it's own node UUID (e.g. it's been removed by another node due to heartbeat expiry), it should re-register itself to the node set. * Simplify localNodePresent calculation
Configuration menu - View commit details
-
Copy full SHA for 5aa1237 - Browse repository at this point
Copy the full SHA 5aa1237View commit details
Commits on Sep 25, 2020
-
CBG-1087 Preserve document metadata under localWins conflict resoluti…
Configuration menu - View commit details
-
Copy full SHA for 1dda0cb - Browse repository at this point
Copy the full SHA 1dda0cbView commit details -
CBG-1095 Re-register import node after transient removal (2.8.0) (#4804)
If an import node is temporarily removed from the set of cbgt node definitions (e.g. due to temporary dropped heartbeats), have nodes re-register themselves.
Configuration menu - View commit details
-
Copy full SHA for e2e7d42 - Browse repository at this point
Copy the full SHA e2e7d42View commit details
Commits on Oct 29, 2020
-
CBG-1127 Don't treat imported SDK resurrections as conflicts (#4823)
* CBG-1127 Don't treat imported SDK resurrections as conflicts When a tombstoned document is resurrected via the SDK, the metadata history is lost and the document is resurrected as a new revision on a disconnected branch. When replicated via sg-replicate, this revision shouldn't be treated as being in conflict with a tombstoned document (no active leaves). Concurrent updates and deletes to the same revision continue to be treated as conflicts, as this doesn't meet the 'disconnected branch' criteria. * Port test fixes from master * Avoid timing issues for TestActiveReplicatorPushAndPullConflict
Configuration menu - View commit details
-
Copy full SHA for 2ecbc77 - Browse repository at this point
Copy the full SHA 2ecbc77View commit details
Commits on Nov 4, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c2431b2 - Browse repository at this point
Copy the full SHA c2431b2View commit details
Commits on Nov 5, 2020
-
[2.8.0.1 Backport] - CBG-1179 - Strip basic auth component before sen…
…ding blipsync websocket request (#4841)
Configuration menu - View commit details
-
Copy full SHA for 8a982d1 - Browse repository at this point
Copy the full SHA 8a982d1View commit details
Commits on Jan 12, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 786d680 - Browse repository at this point
Copy the full SHA 786d680View commit details
Commits on Jan 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c9f8f80 - Browse repository at this point
Copy the full SHA c9f8f80View commit details -
[2.8.1 Backport] - CBG-1265 - Ensure partial backfills contain the tr…
…iggered by change for existing channels (#4910)
Configuration menu - View commit details
-
Copy full SHA for f1be615 - Browse repository at this point
Copy the full SHA f1be615View commit details -
[2.8.1 Backport] - CBG-1244 - DocumentChange event winning_rev_only o…
…ption (#4909) * [2.8.1 Backport] Fix empty webhook payload logging due to buffer-reuse (#4891) * [2.8.1 Backport] Use standard config schema validation for event handler config validation (#4898) * [2.8.1 Backport] Add winning_rev_only option to DocumentChanged event handler config (#4901) * Add String method to EventType for better logging * Add winning_rev_changed event handler * Rework winning rev only option for DocumentChanged event to use generic options supplied to all event handlers/webhooks. * Add missing params in event/webhook functions * Remove old event type * Address PR comments
Configuration menu - View commit details
-
Copy full SHA for 2edc9a0 - Browse repository at this point
Copy the full SHA 2edc9a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 586fb79 - Browse repository at this point
Copy the full SHA 586fb79View commit details
Commits on Jan 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f96cf54 - Browse repository at this point
Copy the full SHA f96cf54View commit details -
[2.8.1 Backport] - CBG-1267 Exit cache processing for _sync:cfg docs …
…after cfgEventCallback (#4922)
Configuration menu - View commit details
-
Copy full SHA for c6c8472 - Browse repository at this point
Copy the full SHA c6c8472View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5fea2d - Browse repository at this point
Copy the full SHA a5fea2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1de96a - Browse repository at this point
Copy the full SHA b1de96aView commit details
Commits on Jan 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4937c0c - Browse repository at this point
Copy the full SHA 4937c0cView commit details
Commits on Jan 18, 2021
-
CBG-1263 Remove legacy cbgt index definition (#4933)
Backports CBG-1222 to 2.8.1
Configuration menu - View commit details
-
Copy full SHA for 69e08de - Browse repository at this point
Copy the full SHA 69e08deView commit details
Commits on Jan 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 55492a8 - Browse repository at this point
Copy the full SHA 55492a8View commit details -
[2.8.1 Backport] CBG-1235 - Add option to hide product version info f…
…rom non-admin requests (#4935) * [2.8.1 Backport] CBG-759 - Add option to hide product version info from non-admin requests (#4928) * CBG-759 - Add option to hide product info from non-admin requests * Scope placeholders in version.go to prevent accidental usage * Have default ProductName const (for use in testing) * Omit product name from Basic auth realm when hide_product_info=true * Hide product version only * Fix test assertions for last change * Address PR comments (add rootResponse struct and build wwwAuthenticateHeader ahead of time) * Fix unused import from cherry-pick
Configuration menu - View commit details
-
Copy full SHA for 7d7110b - Browse repository at this point
Copy the full SHA 7d7110bView commit details
Commits on Jan 20, 2021
-
CBG-1200: Improve handling for newly created tombstones to prevent em…
…pty documents (#4884) (#4937) * CBG-1200: Tombstones v2 * Possibly handle pre-6.6 * Alter returned cas values * Additional Test * Added manual test * Remove debug * Test fix * Missed skip on manual test * Address PR comments and import handling * Remove commented out block * Additional cleanup * Change if requirements * Bump manifest * Assert specific error in tests
Configuration menu - View commit details
-
Copy full SHA for 41682bd - Browse repository at this point
Copy the full SHA 41682bdView commit details
Commits on Jan 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a89e637 - Browse repository at this point
Copy the full SHA a89e637View commit details -
CBG-1273: Add more prometheus alert examples (#4936) (#4944)
* CBG-1273: Add more prometheus alert examples * address PR comments
Configuration menu - View commit details
-
Copy full SHA for 6ecacdc - Browse repository at this point
Copy the full SHA 6ecacdcView commit details
Commits on Jan 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c508f8b - Browse repository at this point
Copy the full SHA c508f8bView commit details
Commits on Feb 8, 2021
-
CBG-1311 Backport CBG-1304 to 2.8.1 (#4958)
Fixes ISGR: Pull replications incompatible with active-side allow_conflicts=false
Configuration menu - View commit details
-
Copy full SHA for 1ac44d3 - Browse repository at this point
Copy the full SHA 1ac44d3View commit details
Commits on Feb 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0be9ae8 - Browse repository at this point
Copy the full SHA 0be9ae8View commit details
Commits on Feb 26, 2021
-
CBG-1341 Backport CBG-1339 to 2.8.2 (#4970)
Fix for infinite loop when tombstoning a server tombstone.
Configuration menu - View commit details
-
Copy full SHA for 4df7a2d - Browse repository at this point
Copy the full SHA 4df7a2dView commit details