Commit Graph

27 Commits

Author SHA1 Message Date
Shinya Maeda 082dee862f Fix dead lock by in_lock conflicts. Shared out in_lock logic. Changed key_raw path of fog store. and some bug fixes to make it functional. 2018-06-15 15:48:03 +09:00
Kamil Trzciński 644529590a Allow to store BuildTraceChunks on Object Storage 2018-06-07 10:46:14 +02:00
Grzegorz Bizon 965d0394d3 Merge branch 'live-trace-v2-efficient-destroy-all' into 'master'
Live trace: Use efficient destroy all (for `dependent: :destory` problem)

See merge request gitlab-org/gitlab-ce!18575
2018-05-07 12:01:32 +00:00
Kamil Trzciński e1d11cc649 Fix rubocop 2018-05-07 11:45:38 +02:00
Kamil Trzciński d6d25d2da6 Fix WRITE_LOCK_SLEEP 2018-05-07 11:05:26 +02:00
Kamil Trzciński 2a03142c94 Optimise write lock parameters 2018-05-07 10:34:47 +02:00
Shinya Maeda 8fd76a752b Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all 2018-05-04 20:20:07 +09:00
Shinya Maeda 28284c1497 Add validation and skip logic at #truncate 2018-05-04 17:42:37 +09:00
Shinya Maeda 812dd06d51 Introduce Redis helpers. Rename BuildTraceChunkFlushToDbWorker to Ci::BuildTraceChunkFlushWorker. 2018-05-04 17:02:08 +09:00
Shinya Maeda c80949fdcd Simplify FastDestroyAll module 2018-05-03 17:08:05 +09:00
Shinya Maeda 45dc7ae2d2 Clean up build_trace_chunk 2018-05-03 14:57:15 +09:00
Shinya Maeda ae76f0c3b5 Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all 2018-05-02 21:25:08 +09:00
Shinya Maeda 7d626c41cc Fix BuildTraceChunkFlushToDbWorker name 2018-05-02 21:22:08 +09:00
Shinya Maeda 40fa5ae7bf Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all 2018-05-02 16:53:47 +09:00
Shinya Maeda 950df8babf Rename BuildTraceSwapChunkWorker to BuildTraceChunkFlushToDBWorker 2018-05-02 16:52:54 +09:00
Shinya Maeda 9e65dc5377 Introduce `use_fast_destroy` helper for parent associations. Rename method names in build_trace_chunks. Forbid `destroy` method when `FastDestroyAll` included. 2018-05-02 15:55:55 +09:00
Shinya Maeda 1d53918b62 Introduces `FastDestroyAll` module 2018-05-01 17:06:44 +09:00
Shinya Maeda c46101e2ef Added spec for trace archiving. 2018-04-30 15:58:55 +09:00
Shinya Maeda 610451b40d Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all 2018-04-30 15:27:57 +09:00
Shinya Maeda d5344617a8 Fix spec when parent record is destroyed 2018-04-30 15:27:05 +09:00
Shinya Maeda 671f004451 Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all 2018-04-30 14:53:38 +09:00
Shinya Maeda 23c8e19846 Fix spec. Revert #truncate in stream (But still prevent redandant calls) 2018-04-30 14:52:29 +09:00
Shinya Maeda 645b404d89 Fix specs. Align with the new table name ci_build_trace_chunk 2018-04-26 17:25:20 +09:00
Shinya Maeda 1fb66181db Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all 2018-04-26 16:39:56 +09:00
Shinya Maeda f819bb7270 Optimize Trace#write/append/raw by caching data and avoiding unnecesary truncate 2018-04-26 16:30:27 +09:00
Shinya Maeda c588dd843a Rename ExclusiveLease for trace write locking 2018-04-26 15:18:08 +09:00
Shinya Maeda 9d6fe7bfdf Refactoring ci_job_trace to ci_build_trace 2018-04-26 15:06:04 +09:00