- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit1d3ded5
committed
Fix assertion failure in pgbench when handling multiple pipeline sync messages.
Previously, when running pgbench in pipeline mode with a custom scriptthat triggered retriable errors (e.g., serialization errors),an assertion failure could occur: Assertion failed: (res == ((void*)0)), function discardUntilSync, file pgbench.c, line 3515.The root cause was that pgbench incorrectly assumed only a singlepipeline sync message would be received at the end. In reality,multiple pipeline sync messages can be sent and must be handled properly.This commit fixes the issue by updating pgbench to correctly processmultiple pipeline sync messages, preventing the assertion failure.Back-patch to v15, where the bug was introduced.Author: Fujii Masao <masao.fujii@gmail.com>Reviewed-by: Tatsuo Ishii <ishii@postgresql.org>Discussion:https://postgr.es/m/CAHGQGwFAX56Tfx+1ppo431OSWiLLuW72HaGzZ39NkLkop6bMzQ@mail.gmail.comBackpatch-through: 151 parentcd45fef commit1d3ded5
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3459 | 3459 | | |
3460 | 3460 | | |
3461 | 3461 | | |
| 3462 | + | |
| 3463 | + | |
3462 | 3464 | | |
3463 | 3465 | | |
3464 | 3466 | | |
| |||
3473 | 3475 | | |
3474 | 3476 | | |
3475 | 3477 | | |
| 3478 | + | |
| 3479 | + | |
3476 | 3480 | | |
3477 | | - | |
3478 | | - | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
3479 | 3485 | | |
| 3486 | + | |
| 3487 | + | |
3480 | 3488 | | |
3481 | 3489 | | |
3482 | 3490 | | |
| |||
0 commit comments
Comments
(0)