Commit graph

11 commits

Author SHA1 Message Date
Toon Claes
c5597547a1 Backport of "Use Geo log to remove files when migrated to object storage" 2018-10-03 15:09:16 +00:00
Douglas Barbosa Alexandre
34dbccb24b
Add helper methods to stub Gitlab::ExclusiveLease 2018-06-28 19:24:40 -03:00
Sean McGivern
a66af9b121 Merge branch '47513-upload-migration-lease-key-is-incorrect-for-non-mounted-uploaders' into 'master'
Resolve "Upload migration lease key is incorrect for non-mounted uploaders"

Closes #47513

See merge request gitlab-org/gitlab-ce!19600
2018-06-13 09:45:34 +00:00
Jan Provaznik
c3f499e7c8 Use upload ID instead of model ID in lease key
For FileUploaders it's possible that a model has many uploads
and if lease key is created only from model id, it causes that
the model's uploads can not be migrated in parallel because the
exclusive lease key would be same for all uploads of the model.
2018-06-12 09:34:07 +02:00
Micaël Bergeron
50872bcc24
fix the failing spec 2018-06-07 12:06:00 -04:00
🙈 jacopo beschi 🙉
c6b1043e9d Resolve "Make a Rubocop that forbids returning from a block" 2018-04-18 09:19:40 +00:00
Alessio Caiazza
ae27a47b6e
Add Gitlab::ExclusiveLease to ObjectStorage#use_file 2018-03-29 10:01:23 +02:00
Micaël Bergeron
0d458b96e8 remove geo specific code 2018-03-01 16:30:31 -05:00
Micaël Bergeron
a8df653fae another round of fixes 2018-03-01 10:36:24 -05:00
Kamil Trzciński
a22f6fa6e5 Merge branch 'fix/sm/atomic-migration' into 'master'
Fix migrate! method (Minimal fix with ExclusiveLock to prevent race conditions)

Closes #4928 and #4980

See merge request gitlab-org/gitlab-ee!4624
2018-02-28 21:28:26 +01:00
Sean McGivern
a7dae52e9d Merge branch '4163-move-uploads-to-object-storage' into 'master'
Move uploads to object storage

Closes #4163

See merge request gitlab-org/gitlab-ee!3867
2018-02-28 20:58:15 +01:00