Commit Graph

13878 Commits

Author SHA1 Message Date
Kinplemelon
651f72eabc docs: correct the chinese label for the socket_nodelay field 2023-03-16 11:39:29 +08:00
Andrew Mayorov
816667d85c
Merge pull request #10123 from fix/EMQX-9136/lookup-busy-resources
perf(bridge-api): ask nodes' bridge listings in parallel
2023-03-16 00:07:12 +03:00
Andrew Mayorov
a9bc8a4464
refactor(resman): rename ets_lookup → lookup_cached
That way we hide the impementation details + the interface becomes
cleaner and more obvious.
2023-03-15 19:17:30 +03:00
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
Ivan Dyachkov
f5a756a7a8
Merge pull request #10144 from id/fix-no-default-cookie-in-docker
fix: ensure cookie for emqx ctl
2023-03-15 15:44:51 +00:00
zhongwencool
1228d9d5fb
Merge pull request #10130 from zhongwencool/env-value-string-to-binary
fix: replace env value string to binary
2023-03-15 22:36:46 +08:00
zhongwencool
597bfbe310
chore: update changes/ce/fix-10130.en.md
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2023-03-15 20:48:29 +08:00
Zhongwen Deng
60677bc400 chore: remove unuse code 2023-03-15 20:40:54 +08:00
Ivan Dyachkov
d43ee0be60 chore: add changelog 2023-03-15 13:36:27 +01:00
Zhongwen Deng
fc2ddc6349 chore: add changelog for configuration information on Dashboard is garbled 2023-03-15 20:36:09 +08:00
Ivan Dyachkov
aac41ba128 fix: emqx ctl crashed when $HOME/.erlang.cookie is not available
fixes #10142
2023-03-15 13:35:46 +01:00
Ivan Dyachkov
c9b736ae23
Merge pull request #10141 from id/0315-chore-merge-release-50-to-master
0315 chore merge release 50 to master
2023-03-15 12:11:54 +00:00
Ivan Dyachkov
5b87a17329
Merge pull request #10138 from id/ci-tmp-fix-for-build-packages
ci: tmp fix for build packages
2023-03-14 20:05:20 +00:00
SergeTupchiy
9f9d16dd48
Merge pull request #10117 from SergeTupchiy/EMQX-8889_copy_plugins_on_joining_a_cluster
fix: copy plugins to a new node joining a cluster
2023-03-14 21:07:12 +02:00
Zaiming (Stone) Shi
6cbc17f110
Merge pull request #10135 from zmstone/0314-upgrade-to-hocon-0.37.0
chore: upgrade to hocon 0.37.0
2023-03-14 19:55:41 +01:00
Ivan Dyachkov
d337814c08 ci: tmp fix for build packages
- do not build raspbian9 and raspbian10 packages
- install krb5-devel in el9 (to be fixed in builder)
2023-03-14 19:55:03 +01:00
Stefan Strigler
255117f2c4 chore: bump vsn e5.0.2-alpha.1 2023-03-14 19:51:35 +01:00
Kinplemelon
f9556e8e21 chore: upgrade dashboard to v1.1.9 for ce 2023-03-14 19:51:35 +01:00
Serge Tupchii
bde4215a11 fix: copy plugins to a new node joining a cluster
Closes: EMQX-8889
2023-03-14 20:42:57 +02:00
William Yang
c6e1270ac6
Merge pull request #10122 from qzhuyan/dev/william/quic-fix-test
test: improve stability of quic test.
2023-03-14 13:24:47 +01:00
Stefan Strigler
bad952a114
Merge pull request #10134 from sstrigler/release-e5.0.2-alpha.1
Release e5.0.2 alpha.1
2023-03-14 12:32:39 +01:00
William Yang
fffb92ebb7 test(quic): make tc run independent 2023-03-14 11:46:24 +01:00
William Yang
4c28b9f839 chore(test): use power of 2 recvbuff size in quic test
Make msquic assertions happy while in debug mode.
2023-03-14 11:46:24 +01:00
Zaiming (Stone) Shi
18b145ab67 chore: upgrade to hocon 0.37.0
hocon 0.37.0 introduced schema field aliases
this change does not impact anything until we start using aliases
2023-03-14 11:39:55 +01:00
Stefan Strigler
beef7bb0e7 chore: bump vsn e5.0.2-alpha.1 2023-03-14 10:56:18 +01:00
Kinplemelon
27d03770fe chore: upgrade dashboard to v1.1.9 for ce 2023-03-14 10:56:18 +01:00
zhongwencool
4f1da5e9fa
Merge pull request #10132 from zhongwencool/systemd-stop-crash-log
fix: stop port apps when emqx_machine_terminator shutdown
2023-03-14 17:40:26 +08:00
zhongwencool
3057eca995
Merge pull request #10133 from id/ci-fix-spellcheck
ci: fix schema.json path in spellcheck step
2023-03-14 17:37:40 +08:00
zhongwencool
d853085259
Merge pull request #10119 from zhongwencool/fix-statsd-empty-server
fix: don't allow empty string in server_port schema
2023-03-14 16:37:15 +08:00
Ivan Dyachkov
907c2ed423 ci: fix schema.json path in spellcheck step 2023-03-14 09:31:37 +01:00
Zhongwen Deng
4b46c35e74 chore: add changelog 2023-03-14 15:53:32 +08:00
Zhongwen Deng
0738444da9 fix: stop port apps when emqx_machine_terminator shutdown 2023-03-14 15:39:50 +08:00
Andrew Mayorov
a530ccbe3d
Merge pull request #10095 from fix/EEC-782/mysql-prepstmt-exhaustion
fix(mysql): be explicit that batch queries are parameterless
2023-03-14 10:21:45 +03:00
Zaiming (Stone) Shi
102f427aac
Merge pull request #10125 from tom-tschiller/bugfix/emqx-helm-fix-service-annotations
fix(helm-charts): fix for multiple service annotations
2023-03-14 06:19:06 +01:00
Zhongwen Deng
80205d9704 chore: apply code review 2023-03-14 10:54:05 +08:00
Zhongwen Deng
cec399c602 chore: add changelog for statsd.server 2023-03-14 09:17:46 +08:00
Zhongwen Deng
ee2847dcd9 test: make schema test happy 2023-03-14 09:17:45 +08:00
Zhongwen Deng
5be4d97c42 fix: don't allow empty string in server_port schema 2023-03-14 09:17:45 +08:00
Thales Macedo Garitezi
823128dfc7
Merge pull request #10127 from thalesmg/rm-rebar3-emqx-app-master
chore: remove committed rebar3 binary
2023-03-13 16:33:57 -03:00
Kjell Winblad
87ede1b1f7
Merge pull request #10124 from kjellwinblad/kjell/mongodb/default_heartbeat
fix: increase heartbeat time to avoid extreme MongoDB logging
2023-03-13 18:56:49 +01:00
Thales Macedo Garitezi
25c28eab81 chore: remove committed rebar3 binary
We already set up our custom rebar3 binary in CI, so this doesn't need
to be committed.  It is also outdated with our currently used version.
2023-03-13 14:11:39 -03:00
Stefan Strigler
62aec87c56
Merge pull request #10107 from sstrigler/EMQX-9147-bridges-api-fix-handling-unknown-bridge-id
Bridges API: fix handling unknown bridge-id
2023-03-13 16:40:46 +01:00
Thomas Schmid
75ce870cbe fix(helm-charts): fix for multiple service annotations
Fix to support adding multiple service annotations
2023-03-13 15:36:43 +01:00
Kjell Winblad
1cf01197bb fix: increase heartbeat time to avoid extreme MongoDB logging
Our MongoDB driver creates a new temporary connection, for every active
connection, to just do a single heartbeat test. There is configurable
delay between every heartbeat test. When the user has an EMQX cluster
with a MongoDB bridge (to a MongoDB replica set), there will be a lot of
connections. Furthermore, as MongoDB creates a log entry every time a
new connection is created, the log will be flooded with info about new
connection. One user have reported more than 1MB of log data in a 10
minute period.

This commit tries to fix this by increasing the default delay between
heartbeats. A better fix would be to change the MongoDB driver so that
it does not create a new connection just to do a heartbeat check, but
this is more complicated so we leave this to the future. We might also
swap out the current MongoDB driver to something better.

Fixes:
https://github.com/emqx/emqx/issues/9851
2023-03-13 14:58:53 +01:00
Zaiming (Stone) Shi
0c5ab5183a
Merge pull request #10109 from zmstone/0308-stop-releasing-schema.json-in-rel-package
0308 stop releasing schema.json in rel package
2023-03-13 14:27:15 +01: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