Commit d034f64
authored
[FIXED] 'cluster_traffic: owner' is forgotten after restart (#7191)
`cluster_traffic: owner` can be used to have replication traffic go over
the account "owning" the stream, versus this traffic going over the
system account (`cluster_traffic: system`/default).
When pushing an updated JWT to all servers, all these servers would
correctly update their `cluster_traffic` setting.
However, if a server was restarted it would "forget" `cluster_traffic:
owner` was set, and revert back to `cluster_traffic: system`. This would
put this single server to be unable to communicate with the remainder of
the cluster. Restarting the rest of the cluster would have them also
revert back to `cluster_traffic: system`, which would allow them to
communicate again. But, without respecting the `cluster_traffic: owner`
setting on the account.
This PR fixes that by ensuring `cluster_traffic` can be updated at the
same time as that JetStream is enabled for that particular account upon
startup.
Due to this issue, if a server with this fix is deployed, it will not be
able to communicate with the other servers that had reverted back to
`cluster_traffic: system`. A clean upgrade path for this would be:
- Temporarily update the account to have `cluster_traffic: system`. If
all servers were restarted they were already on this setting. Any
servers that were not yet restarted will now agree on this setting.
- Upgrade all servers to the new server version with this fix.
- Update the account to have `cluster_traffic: owner` again. It should
now be remembered even after a server restart.
Signed-off-by: Maurice van Veen <[email protected]>2 files changed
+90
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3784 | 3784 | | |
3785 | 3785 | | |
3786 | 3786 | | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
3787 | 3792 | | |
3788 | 3793 | | |
3789 | 3794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1821 | 1821 | | |
1822 | 1822 | | |
1823 | 1823 | | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
1824 | 1909 | | |
1825 | 1910 | | |
1826 | 1911 | | |
| |||
0 commit comments