Merge pull request #6974 from zmstone/merge-v4.3-to-v4.4
Merge v4.3 to v4.4
This commit is contained in:
commit
089c1d516a
|
@ -17,6 +17,10 @@ File format:
|
|||
* Fix updating `emqx_auth_mnesia.conf` password and restarting the new password does not take effect [#6717]
|
||||
* Fix import data crash when emqx_auth_mnesia's record is not empty [#6717]
|
||||
* Fix `os_mon.sysmem_high_watermark` may not alert after reboot.
|
||||
* Enhancement: Log client status before killing it for holding the lock for too long.
|
||||
[emqx-6959](https://github.com/emqx/emqx/pull/6959)
|
||||
[ekka-144](https://github.com/emqx/ekka/pull/144)
|
||||
[ekka-146](https://github.com/emqx/ekka/pull/146)
|
||||
|
||||
## v4.3.11
|
||||
|
||||
|
@ -46,7 +50,7 @@ Important notes:
|
|||
* Clustering malfunction fixes [#6221, #6381]
|
||||
Mostly changes made in [ekka](https://github.com/emqx/ekka/pull/134)<br>
|
||||
From 0.8.1.4 to 0.8.1.6, fixes included intra-cluster RPC call timeouts,<br>
|
||||
also fixed `ekka_locker` process crashe after killing a hanged lock owner.
|
||||
also fixed `ekka_locker` process crashed after killing a hanged lock owner.
|
||||
|
||||
* Improved log message when TCP proxy is in use but proxy_protocol configuration is not turned on [#6416]<br>
|
||||
"please check proxy_protocol config for specific listeners and zones" to hint a misconfiguration
|
||||
|
@ -101,6 +105,8 @@ Important notes:
|
|||
properties such as protocol name, protocol version, username (if any) peer-host<br>
|
||||
etc. are filled as MQTT message headers.
|
||||
|
||||
* Format the message id to hex strings in the log message [#6961]
|
||||
|
||||
## v4.3.0~10
|
||||
|
||||
Older version changes are not tracked here.
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# EMQ X 4.4 Changes
|
||||
|
||||
## 4.4-beta.1
|
||||
## v4.4.0
|
||||
|
||||
**NOTE**: v4.4.0 is in sync with: v4.3.12
|
||||
|
||||
### Important changes
|
||||
|
||||
|
@ -14,6 +16,10 @@
|
|||
|
||||
- Support dynamic modification of MQTT Keep Alive to adapt to different energy consumption strategies.
|
||||
|
||||
- Support 4.3 to 4.4 rolling upgrade of clustered nodes. See upgrade document for more dtails.
|
||||
|
||||
- TLS for cluster backplane (RPC) connections. See clustering document for more details.
|
||||
|
||||
### Minor changes
|
||||
|
||||
- Bumpped default boot wait time from 15 seconds to 150 seconds
|
||||
|
@ -41,21 +47,3 @@
|
|||
- HTTP client performance improvement
|
||||
|
||||
- Add openssl-1.1 to RPM dependency
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Fix the issue that the client process becomes unresponsive due to the blockage of RPC calls between nodes
|
||||
|
||||
- Fix the issue that the lock management process `ekka_locker` crashes after killing the suspended lock owner
|
||||
|
||||
- Fix the issue that the Path parameter of WebHook action in rule engine cannot use the rule engine variable
|
||||
|
||||
- Fix MongoDB authentication module cannot use Replica Set mode and other issues
|
||||
|
||||
- Fix the issue of out-of-sequence message forwarding between clusters. The relevant configurable item is `rpc.tcp_client_num`
|
||||
|
||||
- Fix the issue of incorrect calculation of memory usage
|
||||
|
||||
- Fix MQTT bridge malfunction when remote host is unreachable (hangs the connection)
|
||||
|
||||
- Fix the issue that HTTP headers may be duplicated
|
||||
|
|
|
@ -123,6 +123,8 @@ parse(<<>>, Parser) ->
|
|||
|
||||
parse(Bytes, #{phase := body, length := Len, state := State}) ->
|
||||
parse(body, Bytes, State, Len);
|
||||
parse(<<?LF, Bytes/binary>>, #{phase := hdname, state := State}) ->
|
||||
parse(body, Bytes, State, content_len(State));
|
||||
parse(Bytes, #{phase := Phase, state := State}) when Phase =/= none ->
|
||||
parse(Phase, Bytes, State);
|
||||
|
||||
|
|
|
@ -359,6 +359,35 @@ t_1000_msg_send(_) ->
|
|||
lists:foreach(fun(_) -> RecvFun() end, lists:seq(1, 1000))
|
||||
end).
|
||||
|
||||
t_sticky_packets_truncate_after_headers(_) ->
|
||||
with_connection(fun(Sock) ->
|
||||
gen_tcp:send(Sock, serialize(<<"CONNECT">>,
|
||||
[{<<"accept-version">>, ?STOMP_VER},
|
||||
{<<"host">>, <<"127.0.0.1:61613">>},
|
||||
{<<"login">>, <<"guest">>},
|
||||
{<<"passcode">>, <<"guest">>},
|
||||
{<<"heart-beat">>, <<"0,0">>}])),
|
||||
{ok, Data} = gen_tcp:recv(Sock, 0),
|
||||
{ok, #stomp_frame{command = <<"CONNECTED">>,
|
||||
headers = _,
|
||||
body = _}, _} = parse(Data),
|
||||
|
||||
Topic = <<"/queue/foo">>,
|
||||
|
||||
emqx:subscribe(Topic),
|
||||
gen_tcp:send(Sock, ["SEND\n",
|
||||
"content-length:3\n",
|
||||
"destination:/queue/foo\n"]),
|
||||
timer:sleep(300),
|
||||
gen_tcp:send(Sock, ["\nfoo",0]),
|
||||
receive
|
||||
{deliver, Topic, _Msg}->
|
||||
ok
|
||||
after 100 ->
|
||||
?assert(false, "waiting message timeout")
|
||||
end
|
||||
end).
|
||||
|
||||
with_connection(DoFun) ->
|
||||
{ok, Sock} = gen_tcp:connect({127, 0, 0, 1},
|
||||
61613,
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
, {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
|
||||
, {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.9.0"}}}
|
||||
, {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.8.4"}}}
|
||||
, {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.8.1.7"}}}
|
||||
, {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.8.1.8"}}}
|
||||
, {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.7.0"}}}
|
||||
, {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v3.3.6"}}}
|
||||
, {minirest, {git, "https://github.com/emqx/minirest", {tag, "0.3.7"}}}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
, {load_module,emqx_os_mon,brutal_purge,soft_purge,[]}
|
||||
, {load_module,emqx,brutal_purge,soft_purge,[]}
|
||||
, {load_module,emqx_app,brutal_purge,soft_purge,[]}
|
||||
, {load_module,emqx_message,brutal_purge,soft_purge,[]}
|
||||
, {load_module,emqx_limiter,brutal_purge,soft_purge,[]}
|
||||
]},
|
||||
{<<".*">>,[]}
|
||||
|
@ -26,6 +27,7 @@
|
|||
, {load_module,emqx_os_mon,brutal_purge,soft_purge,[]}
|
||||
, {load_module,emqx,brutal_purge,soft_purge,[]}
|
||||
, {load_module,emqx_app,brutal_purge,soft_purge,[]}
|
||||
, {load_module,emqx_message,brutal_purge,soft_purge,[]}
|
||||
, {load_module,emqx_limiter,brutal_purge,soft_purge,[]}
|
||||
]},
|
||||
{<<".*">>,[]}
|
||||
|
|
|
@ -342,7 +342,13 @@ format(#message{id = Id,
|
|||
flags = Flags,
|
||||
headers = Headers}) ->
|
||||
io_lib:format("Message(Id=~s, QoS=~w, Topic=~s, From=~p, Flags=~s, Headers=~s)",
|
||||
[Id, QoS, Topic, From, format(flags, Flags), format(headers, Headers)]).
|
||||
[printable_msg_id(Id), QoS, Topic, From, format(flags, Flags),
|
||||
format(headers, Headers)]).
|
||||
|
||||
printable_msg_id(undefined) ->
|
||||
<<>>;
|
||||
printable_msg_id(Id) ->
|
||||
emqx_guid:to_hexstr(Id).
|
||||
|
||||
format(flags, Flags) ->
|
||||
io_lib:format("~p", [[Flag || {Flag, true} <- maps:to_list(Flags)]]);
|
||||
|
|
Loading…
Reference in New Issue