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

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 parentf8db5c7 commitad5eaf3
1 file changed
+21
-2
lines changedLines changed: 21 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1828 | 1828 |
| |
1829 | 1829 |
| |
1830 | 1830 |
| |
1831 |
| - | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
1832 | 1844 |
| |
1833 | 1845 |
| |
1834 | 1846 |
| |
| |||
1893 | 1905 |
| |
1894 | 1906 |
| |
1895 | 1907 |
| |
1896 |
| - | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
1897 | 1916 |
| |
1898 | 1917 |
| |
1899 | 1918 |
| |
|
0 commit comments
Comments
(0)