emqx/changes/ce
Zaiming (Stone) Shi f9e9748cec fix(cluster-rpc): boot from local config if table loaded
When EMQX boots up, it tries to get latest config from peer (core type)
nodes, if none of the nodes are replying, the node will decide
to boot with local config (and replay the committed changes) if
the commit table is loaded from disk locally (an indication of the
data being latest), otherwise it will sleep for 1-2 seconds and
retry.

This lead to a race condition, e.g. in a two nodes cluster:

1. node1 boots up
2. node2 boots up and copy mnesia table from node1
3. node1 restart before node2 can sync cluster.hocon from it
4. node1 boots up and copy mnesia table from node2

Now that both node1 and node2 has the mnesia `load_node` pointing
to each other (i.e. not a local disk load).

Prior to this fix, the nodes would wait for each other in a dead loop.

This commit fixes the issue by allowing node to boot
with local config if it does not have a lagging.
2023-11-08 15:06:47 +01:00
..
.gitkeep chore: refactor the format-changelog script 2023-02-16 15:25:31 +08:00
feat-11568.en.md feat(republish): allow templating mqtt properties 2023-09-06 09:54:02 -03:00
feat-11597.en.md chore: add changelog 2023-09-13 10:54:50 +03:00
feat-11620.en.md docs: add changelog 2023-09-15 16:07:23 +02:00
feat-11637.en.md feat: add port scan diagnostics to mria waiting for tables checks 2023-09-21 14:29:01 -03:00
feat-11642.en.md feat(quic): bump to quicer 0.0.200 and emqtt 1.9.0 2023-09-20 16:43:15 +02:00
fix-11565.en.md docs: add change log entry for jq upgrade 2023-09-05 13:36:26 +02:00
fix-11567.en.md feat(nodetool): print shutdown status messages while EMQX is stopping 2023-09-12 19:55:16 +03:00
fix-11568.en.md feat(republish): allow templating mqtt properties 2023-09-06 09:54:02 -03:00
fix-11584.en.md fix: telemetry report error on windows 2023-09-11 16:48:30 +08:00
fix-11605.en.md docs: add changelog for pr 11605 2023-09-13 20:55:42 +02:00
fix-11622.en.md docs: add changelogs for pr 11622 2023-09-17 19:13:22 +02:00
fix-11623.en.md fix(esockd): upgrade esockd from 5.9.6 to 5.9.7 2023-09-17 19:44:04 +02:00
fix-11661.en.md docs: add changelog for PR 11661 2023-09-25 16:55:22 +02:00
fix-11667.en.md chore: Add missing changelog 2023-09-26 23:33:47 +08:00
fix-11676.en.md chore: add changelog 2023-09-25 14:57:42 +03:00
fix-11697.en.md feat(gen_rpc): Add schema for the TLS versions and cipher suites 2023-09-28 00:36:59 +02:00
fix-11734.en.md docs: add changelog for pull request 11734 2023-10-10 10:05:14 +02:00
fix-11747.en.md fix: bump to quicer 0.0.202 2023-10-11 13:12:32 +02:00
fix-11796.en.md docs: add changelog 2023-10-20 13:28:29 +02:00
fix-11798.en.md chore: missing change log for duplicated apikey fixing 2023-10-24 09:44:39 +08:00
fix-11813.en.md fix(gen_rpc): ssl client port align with server port 2023-10-24 22:33:52 +02:00
fix-11819.en.md chore: upgrade opentelemtry to v1.3.1-emqx 2023-10-26 10:17:29 +03:00
fix-11861.en.md fix(shell): do not repeat print shell warnings 2023-11-01 14:44:18 +01:00
fix-11897.en.md fix(cluster-rpc): boot from local config if table loaded 2023-11-08 15:06:47 +01:00