Commit Graph

19712 Commits

Author SHA1 Message Date
ieQu1 b812db1e3c fix(ds): Fix packet id -> sequence number translation 2023-11-09 20:12:39 +01:00
Thales Macedo Garitezi 2d539463cd test: fix flaky test
```
 Testing lib.emqx.emqx_cm_SUITE: *** FAILED test case 24 of 31 ***
%%% emqx_cm_SUITE ==> t_stepdown_session_takeover_begin_timeout: FAILED
%%% emqx_cm_SUITE ==>
Failure/Error: ?assertEqual([<0.6635.8>,<0.6520.8>], lists : sort ( emqx_cm : lookup_channels ( ClientId ) ))
  expected: [<0.6635.8>,<0.6520.8>]
       got: [<0.6520.8>,<0.6635.8>]
      line: 309
```
2023-11-09 15:32:52 -03:00
Thales Macedo Garitezi 8df6ce812b
Merge pull request #11918 from thalesmg/add-action-types-api-r53-20231109
feat(actions_api): add `/action_types` API
2023-11-09 14:55:54 -03:00
Thales Macedo Garitezi ee87f90b0d
Merge pull request #11906 from thalesmg/ds-avoid-records-m-20231108
chore(ds): avoid using records in persistence / rpc
2023-11-09 14:25:27 -03:00
Thales Macedo Garitezi 7977ae95c0 fix(actions_api): change bridge v2 occurrences to action
Fixes https://emqx.atlassian.net/browse/EMQX-11338
2023-11-09 14:20:08 -03:00
Zaiming (Stone) Shi fd205f599c build: do not generate desc.en.hocon if jq command is not found 2023-11-09 18:14:56 +01:00
Thales Macedo Garitezi eabd09051a feat(actions_api): add `/action_types` API 2023-11-09 13:54:57 -03:00
Zaiming (Stone) Shi 5990f9835f build: generate desc.en.hocon file for i18n 2023-11-09 16:58:51 +01:00
Zaiming (Stone) Shi aa4a2d9331 build: start versioning i18n files 2023-11-09 16:48:42 +01:00
Ivan Dyachkov 053c03f79f
Merge pull request #11915 from id/1109-ci-fix-on-push-branch-pattern
ci: explicitly specify branch names for push entrypoint
2023-11-09 16:46:49 +01:00
Ivan Dyachkov e15553f9bd ci: fix pattern for on push branch 2023-11-09 16:45:08 +01:00
ieQu1 42a9f0eb6b
Merge pull request #11914 from ieQu1/dev/speed-up-poll
fix(ds): Speed up polling for the new messages
2023-11-09 16:40:06 +01:00
Thales Macedo Garitezi 42536bb5f7 chore(ds): avoid using records in persistence / rpc
Fixes https://emqx.atlassian.net/browse/EMQX-11279
2023-11-09 12:00:25 -03:00
Ivan Dyachkov 6fc2b7799f
Merge pull request #11910 from id/1109-sync-master-to-r54
sync master to r54
2023-11-09 15:14:29 +01:00
ieQu1 cf4a46a78b fix(ds): Speed up polling for the new messages
Poll immediately if the previous poll returned non-empty result
2023-11-09 14:22:32 +01:00
ieQu1 3350bda446 chore(hooks): Fix comment 2023-11-09 14:05:13 +01:00
lafirest 92e978e50e
Merge pull request #11911 from lafirest/fix/limiter_doc
fix(limiter): simplify the descriptions for fields of the limiter
2023-11-09 21:03:27 +08:00
Kinple a828eea613
Merge pull request #11908 from Kinplemelon/kinple/for-upgrade-dashboard
chore: upgrade dashboard to e1.3.1 for ee and v1.5.1 for ce
2023-11-09 18:31:06 +08:00
firest 2b97800c8b fix(limiter): simplify the descriptions for fields of the limiter 2023-11-09 18:00:09 +08:00
William Yang f7a2359329 test(quic): fix flaky 2023-11-09 10:56:16 +01:00
JianBo He d55f1e0813 chore: fix mix compiling failures 2023-11-09 16:54:41 +08:00
Shawn e0f4a2014d fix: emqx failed to start if plugin dir is removed by the user 2023-11-09 16:01:20 +08:00
Ivan Dyachkov 0bf5deaed9 chore: merge master into release-54 2023-11-09 08:32:26 +01:00
JianBo He d6104b37cf test: fix flaky tests 2023-11-09 15:01:12 +08:00
JianBo He 4b18631d49 chore: fix gateway failed test cases 2023-11-09 13:44:20 +08:00
Kinplemelon 5d25daee88 chore: upgrade dashboard to e1.3.1 for ee and v1.5.1 for ce 2023-11-09 10:17:58 +08:00
JianBo He 2d958beae9 chore: try to fix spellcheck 2023-11-09 09:51:08 +08:00
Zaiming (Stone) Shi 42fa1289a1
Merge pull request #11905 from thalesmg/tag-e531-alpha5-r53-20231108
chore: prepare to tag `e5.3.1-alpha.5`
2023-11-08 23:39:33 +01:00
Zaiming (Stone) Shi f95058a3e7
Merge pull request #11897 from zmstone/1107-fix-cluster-conf-sync-wait-loop
1107 fix cluster conf sync wait loop
2023-11-08 23:37:09 +01:00
Zaiming (Stone) Shi 1e3500ffd2
fix(emqx_conf_app): ensure log data fields
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
2023-11-08 21:19:22 +01:00
Thales Macedo Garitezi 8540566eba chore: prepare to tag `e5.3.1-alpha.5` 2023-11-08 13:02:19 -03:00
Thales Macedo Garitezi df2e6520c0
Merge pull request #11904 from thalesmg/fix-bridge-status-v2-r53-20231108
fix(bridge_v2_api): take status and error from bridge, not the connector
2023-11-08 12:53:54 -03:00
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
ieQu1 788698f157
Merge pull request #11720 from ieQu1/dev/refactor-persistent-session
Refactor emqx_durable storage application and introduce learned topic structure storage
2023-11-08 14:27:40 +01:00
Thales Macedo Garitezi f5456135aa fix(bridge_v2_api): take status and error from bridge, not the connector
Fixes https://emqx.atlassian.net/browse/EMQX-11284
Fixes https://emqx.atlassian.net/browse/EMQX-11298
2023-11-08 09:53:42 -03:00
Ilya Averyanov 26094ac611
Merge pull request #11901 from savonarola/1106-fix-old-plugin-compatibility-53
fix old plugin compatibility
2023-11-08 14:10:31 +02:00
Ivan Dyachkov 1e07ea0339
Merge pull request #11900 from id/1108-sync-r53
sync r53
2023-11-08 11:38:07 +01:00
Ilya Averyanov d061d64c70 fix(plugins): fix backward compatibility 2023-11-08 12:36:09 +03:00
Ivan Dyachkov 0c91bec98d chore: merge 'upstream/release-53' 2023-11-08 09:24:38 +01:00
JimMoen eae447619f
Merge pull request #11898 from JimMoen/rm-lib-ee-in-scripts
chore: rm `lib-ce` and `lib-ee` in scripts
2023-11-08 14:03:36 +08:00
JimMoen 4ba1b20894
style: add the last reformat commit to git-blam-ignore 2023-11-08 11:51:47 +08:00
JimMoen 72eb34658d
style: erlfmt all remaining escripts 2023-11-08 11:51:10 +08:00
JimMoen 3fd5ab2782
build(Makefile): erlfmt all escript files 2023-11-08 11:37:24 +08:00
ieQu1 a1cdbaa76d fix(ds): Address code review remarks 2023-11-08 04:31:27 +01:00
JimMoen ef0bebd7b9
chore: rm `lib-ce` and `lib-ee` in scripts 2023-11-08 11:16:36 +08:00
ieQu1 c030188eb7 chore(ds): Add rebar.config file to app/emqx_durable_storage 2023-11-08 03:04:19 +01:00
ieQu1 7cb0322856 fix(emqx): Move bpapi and emqx message record to emqx_utils app 2023-11-08 03:04:19 +01:00
ieQu1 74cb43f8b1 fix(ds): Add unique ID to the key 2023-11-08 03:04:19 +01:00
Andrew Mayorov 54951c273f feat(ds): mix safe cutoff into keymapper filter during iteration 2023-11-08 03:04:19 +01:00
Andrew Mayorov 7a94db25c3 fix(ds): don't iterate over incomplete epoch in bitmask lts storage 2023-11-08 03:04:19 +01:00