cockroachdb / cockroachdb/sequelize-cockroachdb

concurrent transactions with write followed by reading fails due to timeout

未关闭
#66 5 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
55
派生
18
PR 合并指标
30 天内没有已合并 PR

描述

Relevant test: https://github.com/sequelize/sequelize/blob/main/test/integration/cls.test.js#L120-L137

Context:
Doing a write in a transaction (and not committing) that uses one table and a read from the same table in a separate transaction causes timeout.

This is expected behaviour in Cockroach as serializable transactions cause writes to hold exclusive locks.

We do not expect the behaviour from the test above to succeed or Cockroach to change in a way such that the above test will succeed. We'll likely have to document that this is expected behaviour for sequelize-cockroachdb if we can't find a workaround.

Relevant issue: https://github.com/cockroachdb/cockroach/issues/61269

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。