-
Notifications
You must be signed in to change notification settings - Fork 1
Sgw multi cbs test migration #323
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f06e41b
added 2 more tests, second test is a combination of two tests
vipbhardwaj 2037c7c
Merged the second and third tests into a single test.
vipbhardwaj f1e4cf3
ssh removal + need to work on Caddy for the 2nd test, currently unabl…
vipbhardwaj 57c9e0e
Merge branch 'main' into log_redaction_phase2
vipbhardwaj 2c953c0
Log redaction in-line with merged SG refactoring
vipbhardwaj 34bcb01
Refactored syncgateway file to segregate the admin and public APIs
vipbhardwaj b261f65
Added the code supporting multi-CBS, and first test replying on it
vipbhardwaj cb2df40
Mypy error fix, added hostname as a prop to class
vipbhardwaj 3ab82dc
Added CBS methods to support the 2nd added test
vipbhardwaj eb28f60
Fixed the issues related to the commetns ^
vipbhardwaj efb6d5b
Comment fixes for couchbaseserver.py
vipbhardwaj 299c233
Fixing mypy error, rebased latest sg.py
vipbhardwaj a255a41
Added fail-fast for cluster-node obj
vipbhardwaj 494a628
Removed a mistakenly added snippet
vipbhardwaj c73f396
Merge branch 'main' into sgw-multi_cbs-migration
vipbhardwaj 0ac696e
Merge branch 'main' of https://github.com/couchbaselabs/couchbase-lit…
vipbhardwaj b44e794
Merge branch 'main' of https://github.com/couchbaselabs/couchbase-lit…
vipbhardwaj 836013d
added helpers + session avoked at init instead of multiple for every …
vipbhardwaj d3a9073
added another test to multi-CBS and fixes for last comment
vipbhardwaj 134ebdc
optimized the test + infra overall
vipbhardwaj d63a51b
added ISGR class, missing specs
vipbhardwaj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| "test_servers": [], | ||
| "clusters": [ | ||
| { | ||
| "server_count": 1 | ||
| "server_count": 2 | ||
| } | ||
| ], | ||
| "sync_gateways": [ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Multiple Couchbase Server Tests | ||
|
|
||
| ## test_rebalance_sanity | ||
|
|
||
| Test that Sync Gateway handles Couchbase Server cluster rebalancing correctly during concurrent document updates. | ||
|
|
||
| 1. Create bucket on CBS cluster | ||
| 2. Configure database on SGW with distributed indexing enabled | ||
| 3. Create user with specific channels | ||
| 4. Create user client for SGW access | ||
| 5. Add 100 docs to Sync Gateway | ||
| 6. Verify all docs were created and store original revisions and version vectors | ||
| 7. Start concurrent updates (100 updates per doc) and rebalance CBS cluster | ||
| 8. Rebalance OUT cbs_two from cluster | ||
| 9. Add cbs_two back to cluster | ||
| 10. Rebalance IN cbs_two to cluster | ||
| 11. Wait for all updates to complete | ||
| 12. Verify all docs are present and revisions/version vectors changed | ||
| 13. Cleanup: Delete database and bucket | ||
|
|
||
vipbhardwaj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.