Oracle: first use of a new graph from two pools at once can fail with ORA-00054
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
調査の方向性
Start with GraphTables and OracleGraph.ensuring, then read tests/integration/sql/test_graph_tables_on_first_use.py and the linked Drivine TypeScript issue #365 for the concurrent initialization design. Reproduce first use with two separate Oracle pools; add coverage showing both callers proceed and the tables are created once. The issue leaves the fix dependent on what #365 settles.
索引モデルが issue の本文から書いたものです。
説明
What happens: on Oracle, two pools (or processes) that make a new graph's tables at the same moment can fail with ORA-00054 (a TM lock held by another session), not wait. The first-connection ensure (GraphTables, #184, running OracleGraph.ensuring) tolerates ORA-00955 (the object exists) but not ORA-00054, which a second session's DDL gets while the first holds the table's lock.
Seen in the TypeScript library's CI, whose Oracle block is the same design: liberation-data/drivine#365's test "should make the tables once when connections, pools and an object manager first use them together" failed with ORA-00054 … ORA-06512: at line 32. drivine-python's tests (tests/integration/sql/test_graph_tables_on_first_use.py) run concurrent first use within one pool only, where GraphTables' lock serialises it, so they don't reach this.
Expected: first use from separate pools or processes at once makes the tables once and every caller proceeds, as Postgres does with its advisory lock.
A fix: set DDL_LOCK_TIMEOUT for the block (and reset it), or treat ORA-00054 as another session making the tables and check again. Add a test with two separate pools at once on Oracle. Follow whatever liberation-data/drivine#365 settles on.
- 主要言語
- Python
- スター
- 1
- フォーク
- 0
- 平均マージ
- 1時間 10分
- マージ済み PR(30日)
- 88
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
liberation-data/drivine-python のほかの issue
-
CI: three Oracle-only tests in test_cypher_compiled.py never run, as -k oracle doesn't select themオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
liberation-data/drivine-python#178 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
liberation-data/drivine-python#168 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
liberation-data/drivine-python#138 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
liberation-data/drivine-python#189 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
liberation-data/drivine-python#188 ·
メンテナーはふだん 1 日以内に返信
liberation-data/drivine-python の issue をすべて見る
似ている issue
-
bug P1
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Toloka/tolokaforge#1947 ·
メンテナーはふだん 1 日以内に返信
-
SageMaker provider: streaming fails with NoStreamDataError on DJL Serving (LMI) endpoints対応中かも @balajiaru が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
UKGovernmentBEIS/inspect_ai#6127 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
letsencrypt/cp-cps#361 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100