Commit 88ee3de
committed
[yugabyte#27535] YSQL: Fix PgGate's parallel requests
Summary:
Handle the case when all the parallel requests are pruned.
In PgGate requests may take bounds from different sources, like target
tablet bounds, conditions on the primary key, parallel ranges. When we
apply multiple bounds to a request, they may result in empty range.
We prune empty range requests. There are rare, but valid cases when all
tablet requests are pruned. PgGate did not check that and proceeded with
sending zero requests, which triggered assertion failure down the road.
In this diff we check if we have any requests before we send, and skip
sending if we don't.
It is now a valid case now if PgDocOp was executed, but did not sent any
requests. It considers that as the end of the execution not as a
failure.
Jira: DB-17096
Test Plan: ./yb_build.sh --java-test 'org.yb.pgsql.TestPgRegressIndex#schedule'
Reviewers: jason, telgersma
Reviewed By: jason
Subscribers: yql
Tags: #jenkins-ready
Differential Revision: https://phorge.dev.yugabyte.com/D446641 parent 02e10f8 commit 88ee3de
File tree
4 files changed
+26
-10
lines changed- src
- postgres/src/test/regress
- expected
- sql
- yb/yql/pggate
4 files changed
+26
-10
lines changedLines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1651 | 1651 | | |
1652 | 1652 | | |
1653 | 1653 | | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
1654 | 1667 | | |
1655 | 1668 | | |
1656 | 1669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
290 | 292 | | |
291 | 293 | | |
292 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
473 | 472 | | |
474 | 473 | | |
475 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
381 | 383 | | |
382 | 384 | | |
383 | 385 | | |
| |||
0 commit comments