Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Shard API (Mark shard(s) as read only) #1860

Merged
merged 24 commits into from
Mar 17, 2022
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ee979a9
generate shard status api code
parkerduckworth Mar 14, 2022
685dbfa
implement get/update shard status
parkerduckworth Mar 14, 2022
248b7e4
Merge branch 'master' into gh-1839-read-only-shards
parkerduckworth Mar 14, 2022
8b18399
add new methods to authorization_test
parkerduckworth Mar 14, 2022
a90abe7
improve bucket_threshold_test
parkerduckworth Mar 14, 2022
ddb91d5
remove newlines to satisfy linter
parkerduckworth Mar 14, 2022
05ec94a
check shard status before mutating shard state
parkerduckworth Mar 14, 2022
ec47ea3
create storagestate package
parkerduckworth Mar 15, 2022
dd96ccd
fix status test
parkerduckworth Mar 15, 2022
cf17c5d
add shard status tests
parkerduckworth Mar 15, 2022
c452751
rm obsolete file
parkerduckworth Mar 15, 2022
f586540
bump travis_wait for slow integration tests
parkerduckworth Mar 15, 2022
f539423
fix flaky HaltCompaction test
parkerduckworth Mar 15, 2022
6580c89
rm mutex pointers, add shard receiver pointer
parkerduckworth Mar 15, 2022
2063585
move bucket status check to avoid race condition
parkerduckworth Mar 15, 2022
857a544
switch Bucket.statusLock to RWMutex
parkerduckworth Mar 15, 2022
28e5e92
temporarily change test execution order on CI for debugging purposes
etiennedi Mar 16, 2022
721e5b7
add more debug output to reproduce issue locally
etiennedi Mar 16, 2022
b097150
release lock in flush cycle when readonly detected
parkerduckworth Mar 16, 2022
636792f
bump travis_wait for slow integration tests
parkerduckworth Mar 16, 2022
063c9b6
Merge branch 'master' into gh-1839-read-only-shards
parkerduckworth Mar 16, 2022
f31bed1
improve bucket_threshold_test
parkerduckworth Mar 16, 2022
68a9673
remove shard initStatus since it has been relocated
parkerduckworth Mar 16, 2022
98d86bf
fix hnsw deadlock by adding cleanup interval/dropping shard
parkerduckworth Mar 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ before_script:
# Verify that the code is properly formatted.
- if [[ -n "$(gofmt -l .)" ]]; then echo "The following files were not formatted properly!"; gofmt -l .; exit 1; fi
script:
- ./test/run.sh || travis_terminate 1
- travis_wait 15 ./test/run.sh || travis_terminate 1
services:
- docker
sudo: required
8 changes: 8 additions & 0 deletions adapters/handlers/rest/clusterapi/fakes_for_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ func (n *NilMigrator) UpdateClass(ctx context.Context, className string, newClas
return nil
}

func (n *NilMigrator) GetShardsStatus(ctx context.Context, className string) (map[string]string, error) {
return nil, nil
}

func (n *NilMigrator) UpdateShardStatus(ctx context.Context, className, shardName, targetStatus string) error {
return nil
}

func (n *NilMigrator) AddProperty(ctx context.Context, className string, prop *models.Property) error {
return nil
}
Expand Down
298 changes: 296 additions & 2 deletions adapters/handlers/rest/embedded_spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.