Commit Graph

17606 Commits

Author SHA1 Message Date
Paulo Zulato
1b533794aa fix: handle case that zombie process terminated
When emqx is stopped, sometimes it found out that the process is at
zombie state and tries to get the parent PID but the process has already
finished in the meanwhile, printing an error message like this:

```
error: process ID list syntax error

Usage:
 ps [options]

 Try 'ps --help <simple|list|output|threads|misc|all>'
  or 'ps --help <s|l|o|t|m|a>'
 for additional help text.

For more details see ps(1).
WARNING: 281777 is marked <defunct>, parent:
ok
```
2023-09-17 21:53:37 -03:00
Zaiming (Stone) Shi
a9682c2989
Merge pull request #11605 from zmstone/0913-lower-severity-level-for-CMD-override-warnings
0913 lower severity level for cmd override warnings
2023-09-16 11:32:07 +02:00
Zaiming (Stone) Shi
3aa5c9c5c7
Merge pull request #11620 from zmstone/0915-add-bytesize-rule-sql-func
feat: add bytesize rule sql function
2023-09-16 11:30:22 +02:00
Zaiming (Stone) Shi
062854eff7 docs: add changelog 2023-09-15 16:07:23 +02:00
Zaiming (Stone) Shi
ac41f497b4 feat: add bytesize rule sql function 2023-09-15 16:04:21 +02:00
Thales Macedo Garitezi
2aae3856a3
Merge pull request #11596 from thalesmg/fix-typespec-typos-m-20230912
fix: fix typespec typos
2023-09-15 09:24:42 -03:00
lafirest
aace9215a4
Merge pull request #11608 from lafirest/feat/ldap_bind
feat(ldap): integrate authentication with LDAP bind operation
2023-09-15 14:06:39 +08:00
firest
0846939760 fix(ldap): remove unused code and mark sensitive field 2023-09-15 10:13:07 +08:00
JimMoen
b0aeddd815
Merge pull request #11609 from JimMoen/fix-dockerimage-file-with-odbc
fix: update docker image file with msodbc17
2023-09-15 09:36:49 +08:00
Ilya Averyanov
a4b231eccc
Merge pull request #11612 from savonarola/0914-improve-session-evacuation
chore: simplify session eviction for node rebalance
2023-09-14 21:33:30 +03:00
Ilya Averyanov
11c39c4b6a chore: simplify session eviction for node rebalance 2023-09-14 18:28:25 +03:00
Thales Macedo Garitezi
6be0e14e8c fix: fix typespec typos 2023-09-14 10:21:05 -03:00
Thales Macedo Garitezi
e41f7dd68c
Merge pull request #11598 from thalesmg/ds-fix-ps-router-m-20230912
fixes and improvements to persistent session router
2023-09-14 10:00:58 -03:00
JimMoen
c68e380c6f
fix: update docker image file with msodbc17 2023-09-14 17:43:53 +08:00
firest
d0636dee7a chore: update change 2023-09-14 16:52:36 +08:00
lafirest
e07179a054
Merge pull request #11576 from lafirest/fix/banned_typo
fix(banned): fix typos
2023-09-14 14:31:22 +08:00
firest
afbf13b8a2 feat(ldap): integrate authentication with LDAP bind operation 2023-09-14 14:10:43 +08:00
firest
3eb46be2ae fix(banned): fix typos 2023-09-14 14:01:59 +08:00
Zaiming (Stone) Shi
2bf583087b docs: add changelog for pr 11605 2023-09-13 20:55:42 +02:00
Zaiming (Stone) Shi
95f1312df7 chore(emqx_ctl): lower command override log from warning to info
prior to this change this warning message is always logged if a node
joins cluster.

the intention of this warning is to detect potential command name
clash (provided by different plugins), so arguably it should be
at debug level
2023-09-13 20:52:08 +02:00
Zaiming (Stone) Shi
1546fdcd94 chore(rebar.config): use https for dependency repo reference 2023-09-13 20:25:46 +02:00
Thales Macedo Garitezi
803b69d878
refactor: use more consistent return types
Co-authored-by: Andrew Mayorov <encube.ul@gmail.com>
2023-09-13 10:49:45 -03:00
Thales Macedo Garitezi
f55f6dc779 docs(ps_session): add notes explaining rationale about operation order and consistency 2023-09-13 10:12:27 -03:00
Thales Macedo Garitezi
e081abb9e6 perf(ps_router): only check if there are any routes when deciding whether to persist message 2023-09-13 10:02:39 -03:00
Thales Macedo Garitezi
cae9ae1fab fix(ps_router): use disc_copies for storing persistent session routes 2023-09-13 10:02:39 -03:00
SergeTupchiy
cf334d5542
Merge pull request #11567 from SergeTupchiy/EMQX-10835-increase-graceful-stop-timeout
fix(nodetool): increase graceful stop timeout
2023-09-13 13:22:39 +03:00
SergeTupchiy
e20cc9d26f
Merge pull request #11597 from SergeTupchiy/mria-bootstrap-batch-size-config
Mria bootstrap batch size config
2023-09-13 13:19:03 +03:00
Serge Tupchii
a336300ab5 chore: add changelog 2023-09-13 10:54:50 +03:00
Serge Tupchii
e1456c1c04 feat(emqx_conf_schema): add node.default_bootstrap_batch_size config parameter 2023-09-13 10:11:14 +03:00
Serge Tupchii
af015bc2bb chore(ekka): bump version to 0.15.13 2023-09-13 10:11:14 +03:00
Serge Tupchii
f790690d8b fix(bin/emqx): don't suppress wait_for command output, as it can print warning messages 2023-09-12 19:55:16 +03:00
Serge Tupchii
6dd9e54ab8 fix(bin/emqx): remove ps -e opt, as it lists all processes regardless of -p <pid> 2023-09-12 19:55:16 +03:00
Serge Tupchii
9b3f88aeeb feat(nodetool): print shutdown status messages while EMQX is stopping 2023-09-12 19:55:16 +03:00
Serge Tupchii
9de9631d6b fix(nodetool): increase graceful stop timeout, handle and report {badrpc, timeout} error 2023-09-12 19:55:16 +03:00
Thales Macedo Garitezi
f2346b2e9a
Merge pull request #11574 from thalesmg/ds-topic-filter-m-20230907
feat(ds): add filter for message persistence
2023-09-12 12:47:26 -03:00
Thales Macedo Garitezi
59b94788bf refactor: address review comments 2023-09-11 16:25:34 -03:00
Thales Macedo Garitezi
64fcdb671d test: fix a bunch of inter-suite interferences 2023-09-11 16:25:34 -03:00
Thales Macedo Garitezi
f1294736b7 feat(ds): add filter for message persistence
Fixes https://emqx.atlassian.net/browse/EMQX-10520
2023-09-11 16:25:34 -03:00
Thales Macedo Garitezi
fe4640922d feat(ds): add delete callback 2023-09-11 16:25:33 -03:00
Thales Macedo Garitezi
7805cc8c9b fix(session): check if session is persistent 2023-09-11 16:25:33 -03:00
Thales Macedo Garitezi
a054049d12
Merge pull request #11586 from thalesmg/fix-session-record-m-20230911
fix(session): remove recently added `iterators` field from `#session{}` record
2023-09-11 16:03:26 -03:00
Thales Macedo Garitezi
063913f245 fix(session): remove recently added iterators field from #session{} record
Fixes https://emqx.atlassian.net/browse/EMQX-10945

This could lead to `badrecord` errors being raised if a takeover were to happen during a
rolling cluster upgrade, as the old nodes could receive a record with more fields than
expected.
2023-09-11 14:46:12 -03:00
Andrew Mayorov
19abb7c99e
Merge pull request #11579 from keynslug/fix/otp-24-compat
fix(router): use `ets:new/2` options compatible with OTP 24
2023-09-08 18:52:24 +04:00
Andrew Mayorov
3d133801af
fix(router): use ets:new/2 options compatible with OTP 24
While essentially keeping the same effect.
2023-09-08 18:04:29 +04:00
Thales Macedo Garitezi
e089fda260
Merge pull request #11568 from thalesmg/republish-props-m-20230905
feat(republish): allow templating mqtt properties
2023-09-07 16:43:00 -03:00
Thales Macedo Garitezi
68293231b8 test: add cases for more complex placeholders 2023-09-07 13:40:03 -03:00
Thales Macedo Garitezi
014bc64d3b chore: ensure general prop is a binary 2023-09-07 13:40:03 -03:00
Thales Macedo Garitezi
02b8bbf76a chore: drop templating support for Subscription-Identifier
This is highly-dependent on the session state, as is `Topic-Alias`.
2023-09-07 13:40:03 -03:00
Thales Macedo Garitezi
47bd19dee4 chore: lower error log messages down to debug 2023-09-07 13:40:03 -03:00
Thales Macedo Garitezi
080cb73da1 fix: handle badmap inside emqx_placeholder:proc_tmpl 2023-09-07 13:40:03 -03:00