-
Notifications
You must be signed in to change notification settings - Fork 522
Add warning about known problems when configuring use_frozen_dicts
#19711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
60f227f
2ec83ba
15dfb80
2003339
9827f37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add warning about known problems when configuring `use_frozen_dicts`. |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -94,6 +94,10 @@ properties: | |||||||||||||||||
| Determines whether we should freeze the internal dict object in | ||||||||||||||||||
| `FrozenEvent`. Freezing prevents bugs where we accidentally share e.g. | ||||||||||||||||||
| signature dicts. However, freezing a dict is expensive. | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
| > ⚠️ **Warning** – This option is known to introduce a new class of [comparison | ||||||||||||||||||
| bugs](https://github.com/element-hq/synapse/issues/18117) in Synapse. | ||||||||||||||||||
|
Comment on lines
+99
to
+100
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the same warning format as other places (we're not that consistent though) synapse/schema/synapse-config.schema.yaml Lines 3084 to 3086 in a9361c4
synapse/schema/synapse-config.schema.yaml Lines 3682 to 3686 in a9361c4
|
||||||||||||||||||
| default: false | ||||||||||||||||||
| examples: | ||||||||||||||||||
| - true | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this implementation is buggy, wouldn't it just be better to remove it, or at least disabled it unconditionally until it works? Seems ill advised to me to leave options in that actively break software
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed 👍 PR description suggests a follow-up to remove.
I'd rather document this now than be held up by a refactor that may never happen or is a more controversial change in terms of getting it across the line. It also makes the follow-up PR more clear as the reasoning is contained within.