isolation2 lockmodes fails on cassert builds: extra AccessShareLock on partition root
Maintainer thường phản hồi trong vòng 2 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
Hướng nghiên cứu
Bắt đầu với bài kiểm thử lockmodes của isolation2 và các tệp đầu ra dự kiến của nó; issue xác định trường hợp GDD-off INSERT INTO t_lockmods_part_tbl_dml và giải thích hành vi cassert relcache. Kết thúc session 1 trước trường hợp đó, rồi cập nhật các tệp dự kiến. Hoàn thành khi bài kiểm thử chạy thành công trên các bản build bật assert và có ORCA, đồng thời đầu ra lock dự kiến khớp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C
- Star
- 1.4k
- Fork
- 273
- Merge trung bình
- 4 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 105
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/cloudberry
-
psql tab completion broken for storage servers, tags, profiles and resource groups (pre-PG15 query format)Có thể đã có người làm @allenvox đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/cloudberry#2316 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug] Expand fails to recognize user-defined tablespacesCó thể đã có người làm @nix-oss đã nhận 92 ngày trước. Đang mởtype: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apache/cloudberry#1885 · 2 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
gpexpand first stage fails: 'SyncPackages' object has no attribute 'ret' (extension sync never runs; regression)Có thể đã có người làm @talmacschen-arch đã nhận 153 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
apache/cloudberry#1825 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
type: Bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 53/100
apache/cloudberry#2350 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Terminated by signal 6: AbortedĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
apache/cloudberry#2348 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của apache/cloudberry
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
windows-artifacts: the win-arm64 job uses a Visual Studio generator missing from windows-11-armĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
-
Add Royalty funding badgeĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
crosspoint-reader/crosspoint-reader#4535 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[core] Clients never advertise RNS_UD_CS_SUPPORT_ERRINFO_PDU, so a conforming server can't send them Set Error InfoCó thể đã có người làm @akallabeth đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
FreeRDP/FreeRDP#14230 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Wrong release linkedĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Genymobile/scrcpy#7178 ·
Maintainer thường phản hồi trong vòng 3 ngày