gitlab-org--gitlab-foss/changelogs/unreleased/sh-thread-safe-markdown.yml
Stan Hu 15bebda7f8 Make Redcarpet Markdown renderer thread-safe
The Redcarpet library is not thread-safe as described in
https://github.com/vmg/redcarpet/issues/570. Since we instantiate
the Redcarpet renderer in a class variable, multiple Sidekiq threads
can access the work buffer and corrupt the state. We work around
this issue by memoizing the renderer on a thread basis.

Closes #36637
2017-10-02 07:16:00 -07:00

5 lines
91 B
YAML

---
title: Make Redcarpet Markdown renderer thread-safe
merge_request:
author:
type: fixed