-
- Downloads
Force a full GC after importing a project
During a project import, it's possible that new branches are created by the importer to handle pull requests that have been created from forked projects, which would increment the `pushes_since_gc` value via `HousekeepingService.increment!` before a full garbage collection gets to run. This causes HousekeepingService to skip the full `git gc` and move to the incremental repack mode. To ensure that a garbage collection is run to pack refs and objects, explicitly execute the task. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59477
Showing
- app/services/projects/after_import_service.rb 1 addition, 1 deletionapp/services/projects/after_import_service.rb
- app/services/projects/housekeeping_service.rb 4 additions, 1 deletionapp/services/projects/housekeeping_service.rb
- changelogs/unreleased/sh-force-gc-after-import.yml 5 additions, 0 deletionschangelogs/unreleased/sh-force-gc-after-import.yml
- spec/services/projects/after_import_service_spec.rb 1 addition, 1 deletionspec/services/projects/after_import_service_spec.rb
- spec/services/projects/housekeeping_service_spec.rb 13 additions, 0 deletionsspec/services/projects/housekeeping_service_spec.rb
Please register or sign in to comment