mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-03 04:42:15 +00:00
fix(init): add setting to enable durable locks on crdb (#7982)
feat(init): add setting to enable durable locks on crdb
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
The default database of ZITADEL is [CockroachDB](https://www.cockroachlabs.com). The SQL database provides a bunch of features like horizontal scalability, data regionality and many more.
|
||||
|
||||
Currently versions >= 23.2 are supported.
|
||||
|
||||
The default configuration of the database looks like this:
|
||||
|
||||
```yaml
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
---
|
||||
title: Technical Advisory 10009
|
||||
---
|
||||
|
||||
## Date and Version
|
||||
|
||||
Version: 2.53.0
|
||||
|
||||
Date: Calendar week 23/24 2024
|
||||
|
||||
## Description
|
||||
|
||||
There were rare cases where Cockroachdb got blocked during runtime of ZITADEL and returned `WRITE_TOO_OLD`-errors to ZITADEL. The root cause of the problem is described in [this github issue of the database](https://github.com/cockroachdb/cockroach/issues/77119). The workaround provided by the database is enabling the `enable_durable_locking_for_serializable`-flag as described [here](https://github.com/cockroachdb/cockroach/issues/75456#issuecomment-1936277716).
|
||||
|
||||
Because enabling flags requires admin privileges the statement must be executed manually or by executing `zitadel init` command.
|
||||
|
||||
## Statement
|
||||
|
||||
Ensure lock distribution for `FOR UPDATE`-statements on Cockroachdb.
|
||||
|
||||
## Mitigation
|
||||
|
||||
Cockroachdb version >= 23.2.
|
||||
|
||||
## Impact
|
||||
|
||||
Adding additional raft queries to `FOR UPDATE`-statements can impact performance slightly but ensures availability of the system.
|
||||
@@ -149,11 +149,23 @@ We understand that these advisories may include breaking changes, and we aim to
|
||||
<td>New flag to prefill projections during setup instead of after start</td>
|
||||
<td>Feature description</td>
|
||||
<td>
|
||||
new flag `--init-projections` introduced to `zitadel setup` commands (`setup`, `start-from-setup`, `start-from-init`)
|
||||
New flag `--init-projections` introduced to `zitadel setup` commands (`setup`, `start-from-setup`, `start-from-init`)
|
||||
</td>
|
||||
<td>2.44.0, 2.43.6, 2.42.12</td>
|
||||
<td>2024-01-25</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="./advisory/a10009">A-10009</a>
|
||||
</td>
|
||||
<td>Ensure lock distribution for `FOR UPDATE`-statements on Cockroachdb</td>
|
||||
<td>Feature description</td>
|
||||
<td>
|
||||
Fixes rare cases where updating projections was blocked by a `WRITE_TOO_OLD`-error when using cockroachdb.
|
||||
</td>
|
||||
<td>2.53.0</td>
|
||||
<td>2024-05-27</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
## Subscribe to our Mailing List
|
||||
|
||||
Reference in New Issue
Block a user