pglite-socket: keep an extended-query batch on one connection until Sync
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 54/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- node.js, postgresql, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 16.3k
- フォーク
- 474
- 平均マージ
- 23時間 53分
- マージ済み PR(30日)
- 53
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
electric-sql/pglite のほかの issue
-
Feature request: Nitro 3 support (`unwasm` export condition)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
electric-sql/pglite#1120 · コメント 16 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
electric-sql/pglite#1200 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: syncToFs() resolves immediately, without syncing, when another sync is already queued対応中かも @PrabalParihar が 11 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
electric-sql/pglite#1191 ·
メンテナーはふだん 1 日以内に返信
-
Feature request: live: allow pausing the notify triggers during bulk writes (e.g. pglite-sync applies) and refresh once on resume対応中かも @tdrz が 13 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
electric-sql/pglite#1184 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
pglite-socket: handleData copies the whole buffer for every chunk (quadratic time for large messages)対応中かも @benclmnt が 10 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
electric-sql/pglite#1181 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
electric-sql/pglite の issue をすべて見る
似ている issue
-
Bug: Broken RTL / BiDi text rendering when mixing Persian (Farsi) with English or numbers対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 半日 初心者へのやさしさ 68/100
amosblomqvist/learnharness#758 ·
メンテナーはふだん 2 日以内に返信
-
Change Workspacesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
bitfocus/companion-module-renewedvision-propresenter-api#134 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
rcpch/digital-growth-charts-react-component-library#304 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dsh-market/dsh-market#1210 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
trustjonathan/STUDY-HUB#13 ·