emqx/apps
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
..
emqx chore: prepara to tag e5.3.1-alpha.4 2023-11-07 13:04:46 -03:00
emqx_auth chore(auth): cleanup code 2023-10-11 13:13:50 +03:00
emqx_auth_http chore(auth): update tests 2023-10-05 13:41:50 +03:00
emqx_auth_jwt chore(auth): split emqx_authn and emqx_authz apps 2023-10-05 13:41:50 +03:00
emqx_auth_ldap fix(ldap): escape the escape character (\) 2023-10-10 13:49:36 +08:00
emqx_auth_mnesia chore(auth): split emqx_authn and emqx_authz apps 2023-10-05 13:41:50 +03:00
emqx_auth_mongodb chore(auth): split emqx_authn and emqx_authz apps 2023-10-05 13:41:50 +03:00
emqx_auth_mysql chore(auth): split emqx_authn and emqx_authz apps 2023-10-05 13:41:50 +03:00
emqx_auth_postgresql chore(auth): split emqx_authn and emqx_authz apps 2023-10-05 13:41:50 +03:00
emqx_auth_redis chore(auth): split emqx_authn and emqx_authz apps 2023-10-05 13:41:50 +03:00
emqx_auto_subscribe feat: implement configuration and user data export/import CLI 2023-06-09 14:11:47 +03:00
emqx_bridge Merge pull request #11890 from thalesmg/fix-kafka-unhealthy-r53-20231106 2023-11-07 12:38:57 -03:00
emqx_bridge_azure_event_hub Merge pull request #11877 from zmstone/1102-rename-kafka-to-config 2023-11-07 13:41:55 +01:00
emqx_bridge_cassandra fix(cass): avoid using aggregates in healthcheck query 2023-10-13 16:50:19 +07:00
emqx_bridge_clickhouse feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_dynamo chore: merge 'upstream/master' into v5.1.2 2023-07-21 13:25:46 +02:00
emqx_bridge_gcp_pubsub fix(bridges_v1): avoid create dangling connectors when updating bridges via api v1 2023-10-31 16:39:47 -03:00
emqx_bridge_greptimedb chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_bridge_hstreamdb chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_bridge_http feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_influxdb chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_bridge_iotdb feat: add Azure Event Hub Producer bridge 2023-07-27 09:22:39 -03:00
emqx_bridge_kafka Merge pull request #11890 from thalesmg/fix-kafka-unhealthy-r53-20231106 2023-11-07 12:38:57 -03:00
emqx_bridge_kinesis chore: bump app vsns 2023-09-06 11:12:56 +02:00
emqx_bridge_matrix fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_bridge_mongodb feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_mqtt feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_mysql fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_bridge_opents chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_bridge_oracle fix(http_bridge): don't attempt to convert headers to atoms 2023-08-07 13:08:34 -03:00
emqx_bridge_pgsql test: attempt to stabilize flaky tests 2023-08-07 13:08:34 -03:00
emqx_bridge_pulsar feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_rabbitmq feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_redis feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_rocketmq fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_bridge_sqlserver chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_bridge_tdengine chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_bridge_timescale fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_conf fix(cluster-rpc): boot from local config if table loaded 2023-11-08 15:06:47 +01:00
emqx_connector docs: fix inconsistencies for bridge and connector operations 2023-11-07 13:58:23 +01:00
emqx_ctl fix(audit): handle abstract forms when logging eval_erl 2023-10-10 12:31:19 +07:00
emqx_dashboard chore: rename bridges_v2 -> actions in the public facing APIs 2023-11-06 15:37:07 -03:00
emqx_dashboard_rbac chore: fix Dashboard RBAC license and rebar.config 2023-09-22 21:19:45 +08:00
emqx_dashboard_sso test(ldap): add test suite for SSO CLI 2023-10-09 16:05:56 +08:00
emqx_durable_storage Merge pull request #11704 from zmstone/0928-sync-release-53 2023-10-02 21:57:32 +02:00
emqx_enterprise feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_eviction_agent docs: swagger api tags should camel case 2023-10-09 15:21:51 +08:00
emqx_exhook chore: shutdown reason will never be a UTF8 atom 2023-09-01 14:17:33 +08:00
emqx_ft fix: use binary string for raw default values 2023-10-24 14:46:01 +02:00
emqx_gateway chore: update app versions 2023-10-05 13:41:50 +03:00
emqx_gateway_coap chore(auth): get rid of hardcoded schema modules in auth 2023-10-05 13:41:50 +03:00
emqx_gateway_exproto chore(auth): split emqx_authn and emqx_authz apps 2023-10-05 13:41:50 +03:00
emqx_gateway_lwm2m chore(auth): update tests 2023-10-05 13:41:50 +03:00
emqx_gateway_mqttsn chore(auth): get rid of hardcoded schema modules in auth 2023-10-05 13:41:50 +03:00
emqx_gateway_stomp chore(auth): get rid of hardcoded schema modules in auth 2023-10-05 13:41:50 +03:00
emqx_gcp_device fix(gcpdev): restore original shard in mnesia tab definition 2023-10-12 17:30:07 +07:00
emqx_ldap fix(ldap): escape the escape character (\) 2023-10-10 13:49:36 +08:00
emqx_machine fix(shell): do not repeat print shell warnings 2023-11-01 14:44:18 +01:00
emqx_management fix(emqx_mgmt_data_backup): implement importer modules ordering 2023-10-30 19:14:58 +02:00
emqx_modules chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_mongodb chore(auth): split emqx_authn and emqx_authz apps 2023-10-05 13:41:50 +03:00
emqx_mysql chore: update app versions 2023-10-05 13:41:50 +03:00
emqx_node_rebalance docs: swagger api tags should camel case 2023-10-09 15:21:51 +08:00
emqx_opentelemetry fix: use binary string for raw default values 2023-10-24 14:46:01 +02:00
emqx_oracle chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_plugins chore(hooks): validate hookpoints and document hook callbacks 2023-09-26 14:27:42 +03:00
emqx_prometheus Merge pull request #11497 from zhongwencool/prometheus-metrics 2023-08-24 12:06:32 +08:00
emqx_psk fix: psk_authentication is updated failed 2023-07-07 20:02:06 +08:00
emqx_redis chore(auth): split emqx_authn and emqx_authz apps 2023-10-05 13:41:50 +03:00
emqx_resource Merge pull request #11890 from thalesmg/fix-kafka-unhealthy-r53-20231106 2023-11-07 12:38:57 -03:00
emqx_retainer test: fix a flaky test case emqx_crl_cache_SUITE:t_revoked 2023-10-25 16:08:31 +02:00
emqx_rule_engine chore: don't disable rule that references non-existent bridge 2023-11-06 10:09:14 -03:00
emqx_s3 fix: use binary string for raw default values 2023-10-24 14:46:01 +02:00
emqx_schema_registry docs: swagger api tags should camel case 2023-10-09 15:21:51 +08:00
emqx_slow_subs chore(auth): update tests 2023-10-05 13:41:50 +03:00
emqx_telemetry fix(rule_engine): don't enable a rule that references non-existent bridge 2023-11-03 09:24:53 -03:00
emqx_utils fix(bridges_v1): avoid create dangling connectors when updating bridges via api v1 2023-10-31 16:39:47 -03:00