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

Amit Kapila
Don't retreat slot's confirmed_flush LSN.
Prevent moving the confirmed_flush backwards, as this could lead to dataduplication issues caused by replicating already replicated changes.This can happen when a client acknowledges an LSN it doesn't have to doanything for, and thus didn't store persistently. After a restart, theclient can send the prior LSN that it stored persistently as anacknowledgement, but we need to ignore such an LSN to avoid retreatingconfirm_flush LSN.Diagnosed-by: Zhijie Hou <houzj.fnst@fujitsu.com>Author: shveta malik <shveta.malik@gmail.com>Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>Tested-by: Nisha Moond <nisha.moond412@gmail.com>Backpatch-through: 13Discussion:https://postgr.es/m/CAJpy0uDZ29P=BYB1JDWMCh-6wXaNqMwG1u1mB4=10Ly0x7HhwQ@mail.gmail.comDiscussion:https://postgr.es/m/OS0PR01MB57164AB5716AF2E477D53F6F9489A@OS0PR01MB5716.jpnprd01.prod.outlook.com1 parent253cf66 commitc0f51fd
1 file changed
+21
-2
lines changedLines changed: 21 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1830 | 1830 |
| |
1831 | 1831 |
| |
1832 | 1832 |
| |
1833 |
| - | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
1834 | 1846 |
| |
1835 | 1847 |
| |
1836 | 1848 |
| |
| |||
1895 | 1907 |
| |
1896 | 1908 |
| |
1897 | 1909 |
| |
1898 |
| - | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
1899 | 1918 |
| |
1900 | 1919 |
| |
1901 | 1920 |
| |
|
0 commit comments
Comments
(0)