pglite-socket: keep an extended-query batch on one connection until Sync
Maintainer thường phản hồi trong vòng 1 ngày
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
- 54/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, postgresql, typescript
Hướng nghiên cứu
Start by reading the @electric-sql/pglite-socket 0.2.17 source for QueryQueueManager and processQueue, then inspect the related work in issues #1046 and #977. Reproduce the interleaving and queue-stall cases with concurrent pg pools, and check how the proposed batch handling affects disconnect cleanup and transaction ownership. Done means a regression test covers the reported failures and the maintainers have chosen an approach.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This is a fix proposal for #1046. The problem is still present in @electric-sql/pglite-socket 0.2.17.
QueryQueueManagergives the backend to another handler after each message. Two clients that send Parse/Bind/Execute batches can interleave, which gives08P01(protocol violation) and34000(invalid cursor).- When
processQueuethrows, it returns without clearingprocessing, so the queue stops for good.
Change we run locally (patched 0.1.5 since 2026-10-26):
- A handler keeps the backend until its batch reaches Sync. Transaction ownership stays as it is.
- On disconnect, the cleanup syncs an unfinished batch, rolls back its transaction, and releases queued connections.
processingis cleared infinally.
This fixed concurrent HTTP 500s with 08P01 and 34000 from pg pools in our test suite. The simple-query COPY limitation is unchanged. #977 covers part of this. Which approach do you want? We can port the change to the 0.2.17 source and add a regression test with two concurrent pg pools.
- Ngôn ngữ chính
- TypeScript
- Star
- 16.3k
- Fork
- 474
- Merge trung bình
- 23 giờ 53 phút
- Pull request đã merge (30 ngày)
- 53
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 electric-sql/pglite
-
Feature request: Nitro 3 support (`unwasm` export condition)Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
electric-sql/pglite#1120 · 16 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
electric-sql/pglite#1200 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: syncToFs() resolves immediately, without syncing, when another sync is already queuedCó thể đã có người làm @PrabalParihar đã nhận 11 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
electric-sql/pglite#1191 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature request: live: allow pausing the notify triggers during bulk writes (e.g. pglite-sync applies) and refresh once on resumeCó thể đã có người làm @tdrz đã nhận 13 ngày trước. Đang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
electric-sql/pglite#1184 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pglite-socket: handleData copies the whole buffer for every chunk (quadratic time for large messages)Có thể đã có người làm @benclmnt đã nhận 10 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
electric-sql/pglite#1181 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của electric-sql/pglite
Issue tương tự
-
Out of order / duplicate key error shows the key bytes as decimal or UTF-8, not hexCó thể đã có người làm @bardrop đã 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 86/100
-
`/leaderboard`, the page and the share image say "be the first" for a program that hasn't startedĐang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
codercops/discord-bot#152 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug i18n
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
endora-commerce/endora-commerce#1315 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Two stored artist rows are not act names: "DJS" from a Renate floor heading and "Stevie Cox -"Đang mởarea:data-quality importer size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
enorm-labs/event-junkie#5136 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(scripts): set-device-owner.ps1 fails to parse on Windows PowerShell 5.1 (UTF-8 without BOM)Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày