Ghostferry current ignores statement based replication events, which may cause data corruption if binlog_format and binlog_row_image is set temporarily to the wrong value
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
Start by tracing Ghostferry's binlog event handling and reviewing the documentation near the explanation of why binlog_format must be ROW. Examine how statement-based events and InlineVerifier behave, including the pt-heartbeat example. Done means the behavior is documented and, if feasible, unsafe events cause a cautious error without incorrectly rejecting supported cases.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
binlog_format and binlog_row_image are session variables, which could cause certain data mutating events to be dropped by Ghostferry as it currently doesn't process events. An example program that alters binlog_format on its session is pt-heartbeat.
This is an "user-error" type problem. That said, the problem may cause data corruption that is invisible to the user, which is not acceptable. At the minimum, we need to update the documentations about such an occurrence near where we mention why binlog_format needs to be set to ROW. If users are running with the InlineVerifier, there's a chance that these events will be caught by the verifier, but I don't think it is guaranteed.
Ideally, Ghostferry should know this is wrong and error out if it observes such an event. That said, we may need to exclude some SBR entries like pt-heartbeat, or tell users to ignore those schemas/tables all together. These problems could be tricky to resolve. That said, throwing an error due to any of these events would be a cautious first step.
- Ngôn ngữ chính
- Go
- Star
- 858
- Fork
- 77
- Merge trung bình
- 10 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không 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 Shopify/ghostferry
-
Gradual copy throttle recoveryĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
Shopify/ghostferry#471 · 1 bình luận ·
-
Trouble with virtual generated columnsCó thể đã có người làm @driv3r đã nhận 222 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
Shopify/ghostferry#338 · 7 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
Shopify/ghostferry#332 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Shopify/ghostferry#318 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Shopify/ghostferry#306 ·
Tất cả issue của Shopify/ghostferry
Issue tương tự
-
[Bug]: gate 缺失Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Generated cask uses deprecated `postflight` stanza; Homebrew 7 warns on every commandCó thể đã có người làm @k4kratik đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
sachincool/cruft#4 ·
-
help wanted kind/good-first-issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
knative/func#4191 · 1 bình luận ·
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 76/100
VictoriaMetrics/VictoriaLogs#1965 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/bug sig/ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
kubermatic/dashboard#8540 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày