You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] PR #26727 (reduce redundant group-by hash keys) 导致 IVF VECTOR INDEX TEST 性能回归 2-5 倍 #26746
The bad run emitted 387 pipeline batch drain delayed before terminal response warnings during the IVF scenarios. The delayed statements repeatedly spent about 30.03s in Exec.Run; the corresponding good-run window had none.
The server was waiting in pipelineBatchFlow.waitUntilDrained with one outstanding remote batch. On the client, both the connector receiverDone path and dispatch ExecStop path return before acknowledgeRemoteBatch, so the terminal response waits for the 30s drain timeout.
This behavior comes from the remote-batch backpressure lifecycle added by #26711. The bounded-credit design is still correct; the missing case is a batch that has been received and intentionally discarded because the downstream operator has already stopped. That batch must release its credit before the graceful early return. Error/cancellation paths should continue to abort via stream teardown rather than send a success ACK.
I also reproduced the protocol failure locally with a deterministic unit test: a sequenced remote batch followed by connector terminal state leaves pendingBatchAck == 7 instead of zero.
I am preparing the minimal ACK-before-graceful-stop fix plus connector and dispatch regression coverage.
The fix is now up in #26751. It covers the connector, dispatch, and remote-notify graceful-stop paths while preserving the bounded-credit and error/cancellation semantics from #26711.
Activity
aptend commentedon Aug 6, 2026
Confirmed as a regression in the
maindaily IVF-vector job, rather than a regression introduced by #26727 itself.Evidence:
2758eb1d3f81, IVF job92169050931.ab28d1b4ac41, IVF job92486091439.pipeline batch drain delayed before terminal responsewarnings during the IVF scenarios. The delayed statements repeatedly spent about 30.03s inExec.Run; the corresponding good-run window had none.pipelineBatchFlow.waitUntilDrainedwith one outstanding remote batch. On the client, both the connectorreceiverDonepath and dispatchExecStoppath return beforeacknowledgeRemoteBatch, so the terminal response waits for the 30s drain timeout.This behavior comes from the remote-batch backpressure lifecycle added by #26711. The bounded-credit design is still correct; the missing case is a batch that has been received and intentionally discarded because the downstream operator has already stopped. That batch must release its credit before the graceful early return. Error/cancellation paths should continue to abort via stream teardown rather than send a success ACK.
I also reproduced the protocol failure locally with a deterministic unit test: a sequenced remote batch followed by connector terminal state leaves
pendingBatchAck == 7instead of zero.I am preparing the minimal ACK-before-graceful-stop fix plus connector and dispatch regression coverage.
aptend commentedon Aug 6, 2026
The fix is now up in #26751. It covers the connector, dispatch, and remote-notify graceful-stop paths while preserving the bounded-credit and error/cancellation semantics from #26711.
fix(pipeline): abort batch flow on stop sending (#26787)
Ariznawlll commentedon Aug 12, 2026
超时问题已解决
fix(pipeline): abort batch flow on stop sending (matrixorigin#26787)
fix(pipeline): abort batch flow on stop sending (matrixorigin#26787)
fix(pipeline): abort batch flow on stop sending (matrixorigin#26787)