Stream sync generates an empty `FOR TABLE` clause for a standalone Patroni slot
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue nà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
- 76/100
Hướng nghiên cứu
Bắt đầu tại pkg/cluster/streams.go, ở logic đồng bộ stream quanh các dòng được liên kết 125–140 và 380–422; lần theo cách các slot Patroni độc lập đi đến bước tạo publication. Kiểm tra hành vi hiện có được mô tả trong PR #2868 và đường thực thi SQL trong pkg/cluster/database.go. Hoàn thành khi một map bảng rỗng, không có publication hiện hữu, vẫn giữ slot trong slotsToSync và bỏ qua CREATE PUBLICATION.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
When a cluster uses event streams, it can also define a logical replication slot in spec.patroni.slots for a separate consumer. If no stream supplies tables for that slot and no publication with the same name exists, the operator adds the slot with an empty table map and queues a CREATE PUBLICATION statement with an empty table list. PostgreSQL rejects the generated SQL on every sync.
Steps to reproduce
- Install the
FabricEventStreamCRD and configure apostgresqlresource with an active entry inspec.streams. - Add a separate logical replication slot in
spec.patroni.slots(for examplemy_custom_slot: {type: logical, database: foo, plugin: pgoutput}) in databasefoowithout an existing publication namedmy_custom_slot. - During stream sync, the operator executes:
CREATE PUBLICATION "my_custom_slot" FOR TABLE WITH (publish = 'insert, update');
Observed behavior
PostgreSQL rejects the statement with ERROR: syntax error at or near "WITH" (SQLSTATE 42601), and the operator logs a publication creation error on every reconcile.
Expected behavior
When a slot in spec.patroni.slots has no stream tables (len(newTables) == 0) and no existing publication, stream sync should keep the slot in slotsToSync and skip CREATE PUBLICATION. (PR #2868 preserves an existing publication for a standalone slot, whereas this case starts with no publication.)
- Ngôn ngữ chính
- Go
- Star
- 5.3k
- Fork
- 1.1k
- Merge trung bình
- 3 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 11
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 zalando/postgres-operator
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
zalando/postgres-operator#3257 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
zalando/postgres-operator#3254 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
zalando/postgres-operator#3253 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
zalando/postgres-operator#3182 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
dependencies good first issue ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
zalando/postgres-operator#3132 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của zalando/postgres-operator
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[inputs.internal] README lists go_version tag on internal_gather instead of internal_agentCó thể đã có người làm @cvas22 đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
influxdata/telegraf#20264 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port nameĐang mởaccepted bug wg/enterprise-environment
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vllm-project/semantic-router#7483 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
stacklok/toolhive-catalog#2076 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vulncheck or vulndb
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
golang/go#83428 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày