Commit Graph

13811 Commits

Author SHA1 Message Date
Andrew Mayorov
29907875bf
test(bufworker): set batch_time for batch-related testcases
By default it's `0` since e9d3fc51. This made a couple of tests prone
to flapping.
2023-03-15 19:17:30 +03:00
Andrew Mayorov
e411c5d5f8
refactor(resman): work with state cache atomically
Also ensure that cache entries are always consistent with `Data`,
so that most of the code could rely on reading the cached entry
most of the time.
2023-03-15 19:17:30 +03:00
Andrew Mayorov
b3e7e51094
test(bridge): drop unnecessary cleanup routines
Since `end_per_testcase` cleans out all the resources anyway.
2023-03-15 19:17:29 +03:00
Andrew Mayorov
cad6492c99
perf(bridge-api): ask bridge listings in parallel
Also rename response formatting functions to better clarify their
purpose.
2023-03-15 19:17:29 +03:00
Andrew Mayorov
53bc27e0f4
refactor(bridge): avoid unnecessary maps:to_list/1 when listing 2023-03-13 14:49:38 +03:00
Andrew Mayorov
686bf8255b
fix(bridge): reply emqx_resource:get_instance/1 from cache
The resource manager may be busy at times, so this change ensures that
getting resource instance state will not block. Currently, no users of
`emqx_resource:get_instance/1` do seem to be relying on state being
"as-actual-as-possible" guarantee it was providing.
2023-03-13 14:35:08 +03:00
Kjell Winblad
baf39fe080
Merge pull request #10098 from kjellwinblad/kjell/fix/mongo_authz_crash
fix: mongodb authz crash
2023-03-13 10:46:49 +01:00
lafirest
e8cf604ad4
Merge pull request #9893 from lafirest/feat/filiter_banned
feat(banned): filter out banned messages from mqueue
2023-03-13 09:58:39 +08:00
ieQu1
1e23f15bce
Merge pull request #10118 from ieQu1/mria-0.4.0
chore(mria): Bump version to 0.4.0
2023-03-11 19:08:56 +01:00
ieQu1
e3595f2e79 chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
Andrew Mayorov
0403c3c195
Merge pull request #10115 from keynslug/fix/bump-apps-vsn
chore: bump app versions following last merge-back
2023-03-10 17:19:15 +03:00
Andrew Mayorov
a86d06f043
chore: bump app versions following last merge-back 2023-03-10 16:44:15 +03:00
Ilya Averyanov
5650ad20f8
Merge pull request #10100 from savonarola/0308-fix-scram-auth
Fix channel crash for slow clients with enhanced authentication
2023-03-10 12:58:43 +02:00
Zaiming (Stone) Shi
f9151f2903
Merge pull request #10112 from id/0310-merge-release-50-to-master
0310 merge release 50 to master
2023-03-10 09:46:52 +01:00
Ivan Dyachkov
b02eb2104c chore: update information about 5.0 series release branch 2023-03-10 08:56:17 +01:00
Ivan Dyachkov
951e89134c Merge remote-tracking branch 'upstream/release-50' into 0310-merge-release-50-to-master 2023-03-10 08:48:32 +01:00
Ivan Dyachkov
203885ead5
Merge pull request #10110 from zmstone/0309-release-v5.0.20-and-e5.0.1
0309 release v5.0.20 and e5.0.1
2023-03-10 07:37:49 +00:00
Zaiming (Stone) Shi
f231042e76 chore: Generate changelog for e5.0.1 and v5.0.20 2023-03-09 18:47:02 +01:00
Zaiming (Stone) Shi
5bdb85b04f build: add a script to find previous release version tag 2023-03-09 18:34:26 +01:00
Zaiming (Stone) Shi
e4ce9e1111 chore: make possible to debug format-changelog.sh 2023-03-09 18:34:26 +01:00
Zaiming (Stone) Shi
9bba9b47c7 chore: allow untracked files to exist when cutting release 2023-03-09 18:34:26 +01:00
Zaiming (Stone) Shi
b0e6b290ff chore: allow no changelog diff when cutting a release 2023-03-09 18:34:26 +01:00
Zaiming (Stone) Shi
16f6789c9c chore: update script print info 2023-03-09 18:34:26 +01:00
Zaiming (Stone) Shi
3f461f312a chore: bump version to e5.0.1 and v5.0.20 2023-03-09 18:34:26 +01:00
Zaiming (Stone) Shi
e326d03ec5
Merge pull request #10096 from zmstone/0308-merge-release-50-back-to-master
0308 merge release 50 back to master
2023-03-09 18:33:31 +01:00
Zaiming (Stone) Shi
6ebc31a929
Merge pull request #10104 from JimMoen/refine-changes-for-release-50
Refine changes for release 50
2023-03-09 18:33:00 +01:00
Ilya Averyanov
cba0287439 fix(mqtt): fix channel crash for slow clients with enhanced authn 2023-03-09 17:27:24 +02:00
Kjell Winblad
aa57ea9ee1 fix: mongodb authz crash
This fixes a crash with an error in the log file (see below) that
happened when the MongoDB authorization module queried the database. The
reason is that the collection name that was sent to the mongodb
connection was an atom. This is fixed by making sure it is not an atom.

2023-03-08T17:16:34.215523+01:00 [error] msg: query_mongo_error, mfa:
emqx_authz_mongodb:authorize/4, line: 95, peername: 127.0.0.1:53212,
clientid: client123, collection: mqtt_acl, filter: #{username =>
<<"emqx_u">>}, reason: {resource_error,#{msg => #{error =>
{error,{error_cannot_parse_response,{op_msg_response,#{<<"code">> =>
73,<<"codeName">> => <<"InvalidNamespace">>,<<"errmsg">> => <<"Failed to
parse namespace element">>,<<"ok">> => 0.0}}}},id =>
<<"emqx_authz_mongodb:3">>,name => call_query,request =>
{find,mqtt_acl,#{username => <<"emqx_u">>},#{}},stacktrace =>
[{mc_connection_man,reply,1,[{file,"mc_connection_man.erl"},{line,123}],
...]}, reason => exception}}, resource_id: <<"emqx_authz_mongodb:3">>

Fixes: https://github.com/emqx/emqx/issues/9783
2023-03-09 16:01:23 +01:00
JimMoen
842cb7fadc
fix: debug log for rulesql parse failed
See also: PR#10059.
The other error logs will be printed in `emqx_rule_runtime:apply_rule/3`
2023-03-09 11:28:27 +08:00
JimMoen
0c5e95e2d0
chore: refine change log for few PRs
PR#10032, PR#10044, PR#10054, PR#10056
2023-03-09 10:30:11 +08:00
Zaiming (Stone) Shi
fe27604010 Merge remote-tracking branch 'origin/release-50' into 0308-merge-release-50-back-to-master 2023-03-08 16:46:45 +01:00
Zaiming (Stone) Shi
c773f5f5e1 chore: bump version to e5.0.1-rc.2 2023-03-08 13:55:37 +01:00
Zaiming (Stone) Shi
11d5fac57f
Merge pull request #10087 from SergeTupchiy/EMQX-8926_handle_empty_timestamp_influxdb_bridge
fix: use default template if timestamp is empty (undefined) in InfluxDB
2023-03-08 13:53:33 +01:00
Zaiming (Stone) Shi
2825958410
Merge pull request #10086 from zmstone/0307-upgrade-to-ehttpc-0.4.7
chore: upgrade to ehttpc 0.4.7
2023-03-08 13:46:09 +01:00
Zaiming (Stone) Shi
ac6325c823 docs: add change log for PR 10086 2023-03-08 12:56:12 +01:00
Zaiming (Stone) Shi
a952e19109 chore: upgrade to ehttpc 0.4.7 2023-03-08 12:51:42 +01:00
Ivan Dyachkov
19a7c3aeb9 chore: add changelog 2023-03-08 12:05:03 +01:00
Serge Tupchii
97e71c54d4 fix: use default template if timestamp is empty (undefined) in InfluxDB bridge
Closes EMQX-8926
2023-03-08 11:58:23 +01:00
lafirest
37c17b120f
Merge pull request #10083 from lafirest/feat/dynamo
feat(bridges): integrate DynamoDB with data bridges
2023-03-08 17:01:38 +08:00
firest
4ee42bfd1f chore: update changes 2023-03-08 11:13:51 +08:00
firest
984dd3446d test(bridges): add test suite for DynamoDB 2023-03-08 11:13:51 +08:00
firest
bfc2920a55 feat(bridges): introduce DynamoDB definition files from v4 2023-03-08 11:13:51 +08:00
firest
b8b1a78025 feat(bridges): integrate the DynamoDB into data bridges 2023-03-08 11:13:38 +08:00
Zaiming (Stone) Shi
ea7056d39f
Merge pull request #10076 from kjellwinblad/kjell/fix/gun_keepalive_timeout/EMQX-8974
fix: lost messages when HTTP connection times out
2023-03-07 22:48:02 +01:00
Zaiming (Stone) Shi
116137a447
docs: fix typos in change log
Co-authored-by: Ivan Dyachkov <dev@dyachkov.org>
2023-03-07 21:58:05 +01:00
Zaiming (Stone) Shi
158b4a95df
Merge pull request #10079 from qzhuyan/fix/william/i18n-broker_shared_subscription_strategy
fix: i18n desc of broker_shared_subscription_strategy
2023-03-07 21:57:07 +01:00
Zaiming (Stone) Shi
26b29185b2 test(emqx_bridge_webhook_SUITE): fix flakyness in test web server 2023-03-07 20:57:38 +01:00
Zaiming (Stone) Shi
93ebd59fb2 docs: add changelogs for PR 10076 2023-03-07 20:57:38 +01:00
Kjell Winblad
163b33ab28 test: remove unnecessary dependencies of ee apps 2023-03-07 20:57:38 +01:00
Kjell Winblad
ca947e3e70 fix: lost messages when HTTP connection times out
When using async mode with the webhook bridge, queued messages that are
not fully processed when the connection times out could be lost. This
commit fixes this by letting the bridge return a recoverable_error when
this happen. The message send will then be retried in sync mode by the
emqx_resource_buffer_worker.

Fixes: https://emqx.atlassian.net/browse/EMQX-8974
2023-03-07 20:57:19 +01:00