isolation2 lockmodes fails on cassert builds: extra AccessShareLock on partition root
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
isolation2 の lockmodes テストと、その期待される出力ファイルから始めます。issue では GDD-off の INSERT INTO t_lockmods_part_tbl_dml ケースが特定され、cassert relcache の動作が説明されています。そのケースの前にセッション 1 を終了し、その後、期待されるファイルを更新します。assert 有効ビルドと ORCA でテストが成功し、期待されるロック出力が一致すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The isolation2 lockmodes test fails on assert-enabled builds (--enable-cassert) with ORCA on. Seen on the Debug workflow in #2328, same diff on two runs:
1: select * from show_locks_lockmodes;
locktype | mode | granted | relation
----------+------------------+---------+---------------------------------
+ relation | AccessShareLock | t | t_lockmods_part_tbl_dml
relation | RowExclusiveLock | t | t_lockmods_part_tbl_dml
relation | RowExclusiveLock | t | t_lockmods_part_tbl_dml_1_prt_1
relation | RowExclusiveLock | t | t_lockmods_part_tbl_dml_1_prt_2
-(3 rows)
+(4 rows)
https://github.com/apache/cloudberry/actions/runs/44457186410/job/135340162927
This is the GDD-off INSERT INTO t_lockmods_part_tbl_dml ... case. The test already explains why the extra lock appears: with cassert, RELCACHE_FORCE_RELEASE drops the relcache entry on close, so generate_partition_qual() reopens the root with AccessShareLock. That's why the later cases start with 1q:, so they always run without a cached relcache.
The INSERT case (added in 454814d0e8f) sits before that comment and reuses session 1. On a Release build the root is still cached, so there's no lock; on a cassert build there is.
Fix: quit session 1 before the INSERT case and update the expected files.
- 主要言語
- C
- スター
- 1.4k
- フォーク
- 273
- 平均マージ
- 4日 6時間
- マージ済み PR(30日)
- 105
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/cloudberry のほかの issue
-
psql tab completion broken for storage servers, tags, profiles and resource groups (pre-PG15 query format)対応中かも @allenvox が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/cloudberry#2316 ·
メンテナーはふだん 2 日以内に返信
-
[Bug] Expand fails to recognize user-defined tablespaces対応中かも @nix-oss が 92 日前に担当しました。 オープンtype: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apache/cloudberry#1885 · リアクション 2 件 ·
メンテナーはふだん 2 日以内に返信
-
gpexpand first stage fails: 'SyncPackages' object has no attribute 'ret' (extension sync never runs; regression)対応中かも @talmacschen-arch が 153 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/cloudberry#1825 ·
メンテナーはふだん 2 日以内に返信
-
type: Bug
難易度 4/5 3〜5日 初心者へのやさしさ 53/100
apache/cloudberry#2350 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
apache/cloudberry#2348 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
apache/cloudberry の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
windows-artifacts: the win-arm64 job uses a Visual Studio generator missing from windows-11-armオープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
crosspoint-reader/crosspoint-reader#4535 ·
メンテナーはふだん 1 日以内に返信
-
[core] Clients never advertise RNS_UD_CS_SUPPORT_ERRINFO_PDU, so a conforming server can't send them Set Error Info対応中かも @akallabeth が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
FreeRDP/FreeRDP#14230 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Wrong release linkedオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Genymobile/scrcpy#7178 ·
メンテナーはふだん 3 日以内に返信