-
- Downloads
Leave object pools when destroying projects
This action doesn't lean on reduplication, so a short call can me made to the Gitaly server to have the object pool remove its remote to the project pending deletion. https://gitlab.com/gitlab-org/gitaly/blob/f6cd55357/internal/git/objectpool/link.go#L58 When an object pool doesn't have members, this would invalidate the need for a pool. So when a project leaves the pool, the pool will be destroyed on the background. Fixes: https://gitlab.com/gitlab-org/gitaly/issues/1415
Showing
- GITALY_SERVER_VERSION 1 addition, 1 deletionGITALY_SERVER_VERSION
- Gemfile 1 addition, 1 deletionGemfile
- Gemfile.lock 2 additions, 2 deletionsGemfile.lock
- app/models/pool_repository.rb 14 additions, 3 deletionsapp/models/pool_repository.rb
- app/models/project.rb 4 additions, 0 deletionsapp/models/project.rb
- app/services/projects/destroy_service.rb 2 additions, 0 deletionsapp/services/projects/destroy_service.rb
- app/workers/all_queues.yml 1 addition, 0 deletionsapp/workers/all_queues.yml
- app/workers/object_pool/destroy_worker.rb 16 additions, 0 deletionsapp/workers/object_pool/destroy_worker.rb
- lib/gitlab/git/object_pool.rb 1 addition, 1 deletionlib/gitlab/git/object_pool.rb
- lib/gitlab/gitaly_client/object_pool_service.rb 4 additions, 1 deletionlib/gitlab/gitaly_client/object_pool_service.rb
- spec/factories/pool_repositories.rb 4 additions, 0 deletionsspec/factories/pool_repositories.rb
- spec/models/pool_repository_spec.rb 21 additions, 0 deletionsspec/models/pool_repository_spec.rb
- spec/workers/object_pool/destroy_worker_spec.rb 31 additions, 0 deletionsspec/workers/object_pool/destroy_worker_spec.rb
Loading
| Loading
| @@ -418,7 +418,7 @@ group :ed25519 do |
end | ||
# Gitaly GRPC client | ||
gem 'gitaly-proto', '~> 1.3.0', require: 'gitaly' | ||
gem 'gitaly-proto', '~> 1.5.0', require: 'gitaly' | ||
gem 'grpc', '~> 1.15.0' | ||
gem 'google-protobuf', '~> 3.6' | ||
Loading
| Loading
|
app/workers/object_pool/destroy_worker.rb
0 → 100644
Please register or sign in to comment