- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit3f28b2f

Amit Kapila
Don't advance origin during apply failure.
We advance origin progress during abort on successful streaming andapplication of ROLLBACK in parallel streaming mode. But the originshouldn't be advanced during an error or unsuccessful apply due toshutdown. Otherwise, it will result in a transaction loss as such atransaction won't be sent again by the server.Reported-by: Hou ZhijieAuthor: Hayato Kuroda and Shveta MalikReviewed-by: Amit KapilaBackpatch-through: 16Discussion:https://postgr.es/m/TYAPR01MB5692FAC23BE40C69DA8ED4AFF5B92@TYAPR01MB5692.jpnprd01.prod.outlook.com1 parenta95ff1f commit3f28b2f
File tree
4 files changed
+66
-1
lines changed- src
- backend
- replication/logical
- utils/error
- include/utils
- test/subscription/t
4 files changed
+66
-1
lines changedLines changed: 35 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4713 | 4713 |
| |
4714 | 4714 |
| |
4715 | 4715 |
| |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
| 4724 | + | |
| 4725 | + | |
| 4726 | + | |
4716 | 4727 |
| |
4717 | 4728 |
| |
4718 | 4729 |
| |
| |||
4741 | 4752 |
| |
4742 | 4753 |
| |
4743 | 4754 |
| |
| 4755 | + | |
| 4756 | + | |
| 4757 | + | |
| 4758 | + | |
| 4759 | + | |
| 4760 | + | |
| 4761 | + | |
| 4762 | + | |
| 4763 | + | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
4744 | 4768 |
| |
4745 | 4769 |
| |
4746 | 4770 |
| |
| |||
4967 | 4991 |
| |
4968 | 4992 |
| |
4969 | 4993 |
| |
| 4994 | + | |
4970 | 4995 |
| |
4971 | 4996 |
| |
4972 | 4997 |
| |
4973 | 4998 |
| |
4974 | 4999 |
| |
4975 | 5000 |
| |
| 5001 | + | |
| 5002 | + | |
| 5003 | + | |
| 5004 | + | |
| 5005 | + | |
| 5006 | + | |
| 5007 | + | |
| 5008 | + | |
| 5009 | + | |
| 5010 | + | |
4976 | 5011 |
| |
4977 | 5012 |
| |
4978 | 5013 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1568 | 1568 |
| |
1569 | 1569 |
| |
1570 | 1570 |
| |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
1571 | 1588 |
| |
1572 | 1589 |
| |
1573 | 1590 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
| 229 | + | |
229 | 230 |
| |
230 | 231 |
| |
231 | 232 |
| |
|
Lines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 |
| |
71 | 74 |
| |
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
75 | 78 |
| |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
76 | 88 |
| |
77 | 89 |
| |
78 | 90 |
| |
|
0 commit comments
Comments
(0)