diff options
author | Stan Hu <stanhu@gmail.com> | 2019-06-25 14:47:17 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-06-25 22:26:41 -0700 |
commit | 103f2243c897d3ad46b137a153e909e76fde4573 (patch) | |
tree | 4832b6a1a966d12fadd7faecf77fc1600e345a30 /changelogs | |
parent | e3eeb779d72006b9fbbaecf9f1d8fbd52a7d6383 (diff) | |
download | gitlab-ce-103f2243c897d3ad46b137a153e909e76fde4573.tar.gz |
Disable Rails SQL query cache when applying service templates
When the SQL query cache is active, the SELECT query for finding
projects to apply service templates returns the same values. This causes
an infinite loop because even though bulk INSERT queries are made, the
cached results never reflect that progress. To fix this, we call
`Project.uncached` around the query to ensure new data is retrieved.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63595
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/sh-service-template-bug.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-service-template-bug.yml b/changelogs/unreleased/sh-service-template-bug.yml new file mode 100644 index 00000000000..be5d719c6b2 --- /dev/null +++ b/changelogs/unreleased/sh-service-template-bug.yml @@ -0,0 +1,5 @@ +--- +title: Disable Rails SQL query cache when applying service templates +merge_request: 30060 +author: +type: security |