Commit Graph

7467 Commits

Author SHA1 Message Date
JianBo He
3c1ae385ee
Merge pull request #6120 from zmstone/test-fix-flaky-test-t_rest_clienit_inf
test: fix flaky test emqx_stomp_SUITE:t_rest_clienit_inf
2021-11-11 09:33:42 +08:00
Zaiming Shi
b96a106463 style: make elvis happy 2021-11-10 22:54:58 +01:00
Zaiming Shi
9c1972020c test: fix flaky test emqx_stomp_SUITE:t_rest_clienit_inf 2021-11-10 22:51:18 +01:00
Ilya Averyanov
4f0311b6f8
Merge pull request #6093 from savonarola/add-authn-tests
chore(authn mnesia): reimplement emqx_authn_mnesia provider tests
2021-11-10 21:20:46 +03:00
Thales Macedo Garitezi
6a71cdb055
Merge pull request #6096 from emqx/live-channel-count
feat(stats): track live channel / client count

Track connected client count

In order to correctly display the number of connected clients in our monitor dashboard, we need to track those connections that are actually connected to clients, not considering connections from persistent sessions that are disconnected. Today, the
connections.count that is displayed in the dashboards considers those disconnected persistent sessions as well.

The new statistics can be found in the `emqx_management` plugin, under `/api/v4/stats`, in the keys `live_connections.{max,count}`.

Ported from #6056 .
2021-11-10 14:54:34 -03:00
Ilya Averyanov
a0a88e23b0 chore(authn mnesia): reimplement emqx_authn_mnesia provider tests 2021-11-10 17:13:04 +03:00
Thales Macedo Garitezi
60d5017eea
style(elvis): fix elvis style complaints 2021-11-10 11:12:10 -03:00
Thales Macedo Garitezi
8fe342a02d
feat(stats): track live channel / client count
Track connected client count

In order to correctly display the number of _connected_ clients in our
monitor dashboard, we need to track those connections that are
actually connected to clients, not considering connections from
persistent sessions that are disconnected. Today, the
`connections.count` that is displayed in the dashboards considers
those disconnected persistent sessions as well.

The new statistics can be found in the
[`emqx_management`](https://github.com/emqx/emqx/tree/main-v4.4/apps/emqx_management)
plugin, under `/api/v4/stats`, in the keys
`live_connections.{max,count}`.
2021-11-10 11:12:10 -03:00
Thales Macedo Garitezi
ae125cd44d
Merge pull request #6118 from emqx/tmp-disable-rlog-smoke-tests
fix(ci): temporarily disable rlog FVT tests (flakiness)
2021-11-10 11:11:06 -03:00
Thales Macedo Garitezi
28e3727aae
fix(ci): temporarily disable rlog FVT tests (flakiness)
A few FVT tests are very flaky when run in rlog core+replicant cluster
configuration (for instance `V5/test_publish.py::test_topic`). We are
disabling this test configuration temporarily while we investigate
further and mitigate it.
2021-11-10 11:03:39 -03:00
Zaiming (Stone) Shi
829939b9a0
Merge pull request #6108 from terry-xiaoyu/relup_script50
fix(relup): configs for plugins are missing after relup
2021-11-10 14:54:59 +01:00
Zaiming (Stone) Shi
fcb53868ea
Merge pull request #6106 from zmstone/chore-pin-ehttpc-0.1.12
chore(rebar.config): pin ehttpc 0.1.12
2021-11-10 14:40:39 +01:00
lafirest
e8f6035c34
feat(emqx_lwm2m): add some lwm2m api (#6047) 2021-11-10 14:20:33 +08:00
zhongwencool
2d159ad9a1
fix(test): flaky mqtt expiry test case. (#6099) 2021-11-10 09:55:36 +08:00
JimMoen
ac23214447
fix(api): config api on sepcific node (#6100)
* fix(api): config api on sepcific node

* chore(style):  code style for elvis checking
2021-11-10 09:38:45 +08:00
Shawn
e8cb8a3aa4 fix(relup): configs for plugins are missing after relup 2021-11-10 09:32:49 +08:00
Zaiming Shi
8ecdadee3f chore(rebar.config): pin ehttpc 0.1.12 2021-11-09 21:08:55 +01:00
Zaiming (Stone) Shi
c911876511
Merge pull request #6090 from zmstone/feat-best-effort-portable-zip-packages
build: copy dynamic libs for zip package
2021-11-09 18:36:43 +01:00
Thales Macedo Garitezi
f5c45dee91
Merge pull request #6028 from emqx/fvt-tests-with-replicant
test(fvt): extend functional verification tests to use replicant node

This parameterizes the Functional Verification Tests (FVTs) that run
in CI to use a replication log (RLOG) role of "replicant" for one of
the nodes. With this addition, our FVTs may explore more scenarios
with data replication.

For this new cluster configuration, we target only the replicant node
during the tests to avoid race conditions due to replication lag.
2021-11-09 08:17:25 -03:00
zhongwencool
eea789451b
feat: sha3_256 dashboard account's password (#6084) 2021-11-09 15:41:28 +08:00
Thales Macedo Garitezi
030e4857ec
docs(issue): mark solution as TODO and link related issue
https://github.com/emqx/emqx/issues/6094
2021-11-08 15:36:54 -03:00
Thales Macedo Garitezi
f8fc67b313
fix(lag): target only replica if rlog core+replicant
there seems to be race conditions related to some tests with sessions
hitting the core and the replicant alternately and rlog.

for intance, if there is some delay in this replication, a new
connection made to the replica with a just-created session in the core
may not have been replicated to the replicant, resulting in a test
failure if it expects the session to be present.

since such replication lags are inherent to the core-replicant
topology, we can try to target only the replicant to avoid seeing this
inconsistent view of the system during the tests.
2021-11-08 14:18:07 -03:00
Ilya Averyanov
0f8ad29e91
Merge pull request #6078 from savonarola/auth-api-schema-examples
refactor(authn api): add more schema examples
2021-11-08 19:44:02 +03:00
Zaiming Shi
fdc4bb06d3 build: copy dynamic libs for zip package 2021-11-08 17:16:05 +01:00
Zaiming (Stone) Shi
8c89faa283
Merge pull request #6086 from zmstone/fix-bin-emqx-mnesia-dir
fix(bin/emqx): mnesia dir name after node
2021-11-08 17:15:49 +01:00
zhongwencool
b873b92717
fix(test): cluster_rpc retry interval incorrect (#6038) 2021-11-08 23:23:17 +08:00
k32
5726444645
Merge pull request #6066 from k32/remove-nosuspend-5
fix(emqx_connection): Add backpressure to TCP connections
2021-11-08 13:39:38 +01:00
Zaiming Shi
ee817cfa6f fix(bin/emqx): mnesia dir name after node 2021-11-08 13:34:12 +01:00
Thales Macedo Garitezi
c60feaaad2
test(fvt): extend functional verification tests to use replicant node
This parameterizes the Functional Verification Tests (FVTs) that run
in CI to use a replication log (RLOG) role of "replicant" for one of
the nodes.  With this addition, our FVTs may explore more scenarios
with data replication.
2021-11-07 17:02:57 -03:00
Ilya Averyanov
a84b84aac9 refactor(authn api): reformat for elvis compliance 2021-11-05 19:36:26 +03:00
Ilya Averyanov
1e036bf74d refactor(authn api): add more schema examples 2021-11-05 16:12:14 +03:00
Zaiming (Stone) Shi
74e28cc4e9
Merge pull request #6068 from zmstone/fix-ci
ci: fix job syntax
2021-11-04 19:03:55 +01:00
Zaiming Shi
ce8e52f4d0 ci: fix job syntax 2021-11-04 18:32:03 +01:00
Zaiming (Stone) Shi
3b02366a5b
Merge pull request #6064 from zmstone/style-check-newline-at-eof
Style: check newline at EOF
2021-11-04 18:01:45 +01:00
k32
0a5a9bd7d0 fix(emqx_connection): Add backpressure to TCP connections
Fixes #5494
2021-11-04 16:24:47 +01:00
Zaiming Shi
d1abb30818 ci: fix elvis check 2021-11-04 15:27:10 +01:00
Zaiming Shi
dc58e4a441 ci: check code style
run elvis and nl-at-eof check
2021-11-04 14:47:05 +01:00
Zaiming Shi
56e2a9741f style: ensure newline at EOF for all files 2021-11-04 14:40:14 +01:00
Zaiming Shi
6f3cfbc102 chore: add a script to find files without new line at EOF 2021-11-04 14:39:27 +01:00
Ilya Averyanov
aed9ad3f7d
Merge pull request #6037 from savonarola/fix-authn-api-atom-leak
fix(authn api): eliminate possible atom leak
2021-11-03 23:17:47 +03:00
Zaiming (Stone) Shi
85b41a112c
Merge pull request #6053 from zmstone/fix-config-pin-hocon-0.20.6
[v5.0] fix(config): pin hocon 0.20.6
2021-11-03 13:03:47 +01:00
Zaiming Shi
a139a0d453 fix(config): pin hocon 0.20.6
fix translation error
2021-11-03 11:15:35 +01:00
Tobias Lindahl
7e8053248e
Merge pull request #6042 from emqx/persistent-session-review-follow-ups
Persistent session review follow ups
2021-11-02 10:48:33 +01:00
Tobias Lindahl
89cd68d36f refactor(persistent_sessions): fix coding style 2021-11-02 09:33:54 +01:00
Tobias Lindahl
8385eff98e fix(persistent_sessions): we only need to persist if the session expired 2021-11-02 09:27:50 +01:00
Tobias Lindahl
62f9f6fd91
Merge pull request #6036 from emqx/persistent-session-fixes
Persistent session fixes
2021-11-02 08:44:33 +01:00
Tobias Lindahl
b7ed649185 test(persistent_session): wait in test to avoid race 2021-11-01 14:56:10 +01:00
Ilya Averyanov
796553b5ea fix(authn api): eliminate possible atom leak 2021-11-01 16:51:48 +03:00
Tobias Lindahl
ce49a281ed fix(persistent_sessions): protect against looking up stale data 2021-11-01 14:21:01 +01:00
Tobias Lindahl
329dd4d780 test(persistent_session): try to fix flaky snabbkaffe failure 2021-11-01 14:21:01 +01:00