summaryrefslogtreecommitdiff
path: root/lib/gitlab/hashed_storage
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-04-261-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-01-181-0/+32
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-09-171-0/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-09-101-8/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-08-051-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-061-12/+2
|
* Display the amount for Hashed Storage migration/rollback correctly63667-hashed-storage-migration-count-correctlyGabriel Mazetto2019-07-101-1/+5
| | | | | Rake script considers the specified range, if present, to calculate the affected amount of projects correctly.
* Add a rubocop for Rails.loggerMayra Cabrera2019-07-101-0/+4
| | | | | | Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
* Fix storage migration check for non-empty queuesGabriel Mazetto2019-03-171-1/+1
| | | | | The previous code works fine when running specs, but the API does not exist outside that environment.
* Prevent storage migration and rollback running at the same time58739-hashed-storage-prevent-a-migration-and-rollback-running-at-the-same-timeGabriel Mazetto2019-03-121-0/+18
| | | | | | This is a small polishing on the storage migration and storage rollback rake tasks. By aborting a migration while a rollback is already scheduled we want to prevent unexpected consequences.
* Added Rollbacker workers and support on the rake taskGabriel Mazetto2019-03-012-2/+37
| | | | | | | | | Rollback is done similar to Migration for the Hashed Storage. It also shares the same ExclusiveLease key to prevent both happening at the same time. All Hashed Storage related workers now share the same queue namespace which allows for assigning dedicated workers easily.
* Adds Rollback functionality to HashedStorage migrationGabriel Mazetto2019-03-011-1/+8
| | | | | | | We are adding sidekiq workers and service classes to allow to rollback a hashed storage migration. There are some refactoring involved as well as part of the code can be reused by both the migration and the rollback logic.
* Refactor Storage MigrationGabriel Mazetto2019-01-251-13/+6
| | | | | | | | | Specs were reviewed and improved to better cover the current behavior. There was some standardization done as well to facilitate the implementation of the rollback functionality. StorageMigratorWorker was extracted to HashedStorage namespace were RollbackerWorker will live one as well.
* Prepare rake task for storage rollbackGabriel Mazetto2019-01-251-9/+20
| | | | We are keeping compatibility with existing scheduled jobs.
* Enable even more frozen string in lib/gitlabrepo-forks/gitlab-ce-frozen-string-lib-gitlab-even-moregfyoung2018-11-132-0/+4
| | | | | | | | | | | | | | | | | | | Enables frozen string for the following: * lib/gitlab/fogbugz_import/**/*.rb * lib/gitlab/gfm/**/*.rb * lib/gitlab/git/**/*.rb * lib/gitlab/gitaly_client/**/*.rb * lib/gitlab/gitlab_import/**/*.rb * lib/gitlab/google_code_import/**/*.rb * lib/gitlab/gpg/**/*.rb * lib/gitlab/grape_logging/**/*.rb * lib/gitlab/graphql/**/*.rb * lib/gitlab/graphs/**/*.rb * lib/gitlab/hashed_storage/**/*.rb * lib/gitlab/health_checks/**/*.rb Partially address gitlab-org/gitlab-ce#47424.
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-112-0/+12
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Resolve "Hashed storage: extend "Enable hashed storage for all new projects" ↵Valery Sizov2018-08-031-1/+1
| | | | to "for all new and renamed projects""
* Resolve "Hashed Storage: Make possible to migrate single project"Gabriel Mazetto2018-06-072-1/+70
|
* refactor to remove duplicationGabriel Mazetto2018-05-281-14/+12
|
* Refactor RakeHelper to reduce complexityGabriel Mazetto2018-05-281-26/+18
|
* Extracted auxiliary methods from storage.rake into specific RakeHelperGabriel Mazetto2018-05-281-0/+81