forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8749d85
committed
Make postgres_fdw's query_cancel test less flaky.
This test occasionally shows+WARNING: could not get result of cancel request due to timeoutwhich appears to be because the cancel request is sometimes unluckilysent to the remote session between queries, and then it's ignored.This patch tries to make that less probable in three ways:1. Use a test query that does not involve remote estimates, so thatno EXPLAINs are sent.2. Make sure that the remote session is ready-to-go (transactionstarted, SET commands sent) before we start the timer.3. Increase the statement_timeout to 100ms, to give the localsession enough time to plan and issue the query.We might have to go higher than 100ms to make this adequatelystable in the buildfarm, but let's see how it goes.Back-patch to v17 where this test was introduced.Jelte Fennema-Nio and Tom LaneDiscussion:https://postgr.es/m/578934.1725045685@sss.pgh.pa.us1 parentb431108 commit8749d85
File tree
2 files changed
+32
-12
lines changed- contrib/postgres_fdw
- expected
- sql
2 files changed
+32
-12
lines changedLines changed: 19 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
6 |
| - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 |
| |
8 | 12 |
| |
9 | 13 |
| |
10 | 14 |
| |
11 |
| - | |
12 |
| - | |
| 15 | + | |
| 16 | + | |
13 | 17 |
| |
14 | 18 |
| |
15 |
| - | |
16 | 19 |
| |
17 |
| - | |
18 |
| - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
19 | 31 |
| |
20 | 32 |
|
Lines changed: 13 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
7 |
| - | |
8 |
| - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 |
| |
10 |
| - | |
11 |
| - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
12 | 20 |
|
0 commit comments
Comments
(0)