A flushed save of a plain class survives a failed tenant transaction
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- groovy
- 領域
- databases
調査の方向性
grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/AbstractGormApi.groovy の requireTransactionForWrite にある flush チェックの周辺から始めてください。tenant ブロック内の単純なクラスで、save(flush: true) がどのようにトランザクションチェックに到達するかを追跡してください。報告された失敗を再現し、tenant トランザクションが失敗した後、inner という名前の行が存在しなくなることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
A flushed save of a plain class still survives when the tenant transaction fails.
Inside a tenant block, a transactional writer saves a plain class with a flush and then throws. The tenant transaction fails. The plain row is still in the default database. The flush returns before the check that the write has a transaction in its own datastore, so the save is neither rolled back nor refused.
The input is a plain class saved with save(flush: true) inside the tenant transaction, then an exception. The row named inner remains after the failure.
See grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/AbstractGormApi.groovy around the flush check in requireTransactionForWrite.
- 主要言語
- Groovy
- スター
- 2.9k
- フォーク
- 980
- 平均マージ
- 1日 21時間
- マージ済み PR(30日)
- 148
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/grails-core のほかの issue
-
NavigableMapConfig: the Javadoc of WINDOWS_NAME_ORDER should name the JDK comparator it mirrorsオープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
apache/grails-core#17133 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
apache/grails-core#17132 ·
メンテナーはふだん 1 日以内に返信
-
Spring Security ACL: the sec:permitted and sec:notPermitted tags fail when the plugin is inactiveオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/grails-core#17130 ·
メンテナーはふだん 1 日以内に返信
-
MongoDB: shorten the index creation ERROR line and quiet the test output of grails-data-mongodb-coreオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/grails-core#17129 ·
メンテナーはふだん 1 日以内に返信
-
In-memory store: a criteria block on a to-one association mapped under another key matches nothingオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
apache/grails-core#17112 ·
メンテナーはふだん 1 日以内に返信
apache/grails-core の issue をすべて見る
似ている issue
-
bug external-issue to-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: legacy_json_to_doc crashes on persisted docs with "relationships": null対応中かも @Harsh23Kashyap が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
run-llama/llama_index#24392 ·
メンテナーはふだん 2 日以内に返信
-
kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
openminion/openminion#857 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信