Commit Graph

7654 Commits

Author SHA1 Message Date
JimMoen cf80aaacc3 test: add tasks flushing in emqx_cm cases 2021-11-15 20:40:43 +08:00
Zaiming (Stone) Shi 9761fe2f6d
Merge pull request #6009 from tigercl/fix/authn
fix(authn): fix handling of query result
2021-11-15 13:32:56 +01:00
JimMoen e07e3c7039 ci: update emqx-fvt version 2021-11-15 16:30:44 +08:00
JimMoen dcc5ae0642 test: API return code section 2021-11-15 16:30:44 +08:00
JimMoen b3f9220d02 style: make elvis happy 2021-11-15 16:30:44 +08:00
JimMoen c5f9f397f0 chore(ignore): add direnv dotfile 2021-11-15 16:30:44 +08:00
JimMoen 106aa559e0 fix(api): DELETE success wrongly returned code 200 2021-11-15 16:30:44 +08:00
JimMoen 59e6b6ee5b
test(cm): add sleep time for multicore scheduling (#6164) 2021-11-15 15:43:26 +08:00
DDDHuang 1476accd63
fix: monitor bad mnesia write & rpc call (#6060) 2021-11-15 15:28:19 +08:00
zhongwencool 01f29ab052
chore(swagger): lwm2m2 http api to hocon (#6153) 2021-11-15 15:08:50 +08:00
JimMoen 5a928ad8c3 test(cm): add sleep time for multicore scheduling 2021-11-15 13:52:15 +08:00
Spycsh 356137dbb4 fix: fix starting error when path contains space 2021-11-12 21:52:42 +01:00
Zaiming (Stone) Shi 9cf8dfcb55
Merge pull request #6157 from zmstone/chore-delete-unused-functions
chre(bin/emqx): delete unused cookie file chown
2021-11-12 16:02:00 +01:00
Zaiming Shi 00d3a832ba chore(bin/emqx): delete unused cookie file chown 2021-11-12 14:56:14 +01:00
Zaiming (Stone) Shi c89132e968
Merge pull request #6117 from zmstone/chore-safer-bash-flags
refactor bin/emqx
2021-11-12 07:48:09 +01:00
DDDHuang f0107868d4
fix: test suite stable (#6136)
* fix: test suite stable
2021-11-12 10:53:30 +08:00
JimMoen 9b17757ae8 style: make elvis happy 2021-11-12 09:29:26 +08:00
JimMoen 37cdd429b2 fix(api): remove sessionID from client information 2021-11-12 09:29:26 +08:00
Zaiming (Stone) Shi aac090ad7b
Merge pull request #6104 from emqx/issue-tmpl-askemq
chore(github-issue-template):  https://askemq.com/
2021-11-11 17:29:23 +01:00
DDDHuang bc6e49804f
feat: support CORS request
feat: support CORS request
2021-11-11 20:27:39 +08:00
zhongwencool 7a5da76197
Mgmt http api banned (#5998)
* fix(swagger): don't transform [log,publish] to a list.pwd

* chore: replace banned-api by hocon schema

* fix(api): code style warning
2021-11-11 16:35:29 +08:00
JimMoen a65597e302
Authz api mnesia refactor (#6082)
* refactor(authz): macro move to hrl and rename, add meta example

* refactor(authz_api_mnesia): use config schemas for request validations

* chore(authz_api_mnesia): suite module typerefl fit

* chore(style): authz_api_mnesia style format
2021-11-11 16:29:36 +08:00
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
Zaiming Shi e484fcc8c3 chore(bin/emqx): write sensible log if node not initialized 2021-11-10 21:15:54 +01:00
Zaiming Shi 160825095a chore(bin/emqx): add more usage prints 2021-11-10 20:19:38 +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 cf06ceb921 chore(bin/emqx): fix a typo in bash function 2021-11-09 23:00:53 +01:00
Zaiming Shi 25248a9e21 chore(bin/emqx): delete boot file start option
we have never tested using alternative boot file to start EMQ X
drop it
2021-11-09 23:00:53 +01:00
Zaiming Shi 9b9a070168 chore(bin/emqx): add default values for bash vars 2021-11-09 23:00:53 +01:00
Zaiming Shi 1480bb6158 chore(bin/emqx): delete RELX_CONFIG_PATH
this variable is to allow setting sys.config by user
however this feature is now broken because the
we always generate app.<time>.config
2021-11-09 23:00:53 +01:00
Zaiming Shi a27b452fe7 chore(bin/emqx): bash set -o 2021-11-09 22:59:09 +01: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
William Yang b0dd944fa4
chore(github-issue-template): https://askemq.com/ 2021-11-09 11:33:32 +01:00
zhongwencool eea789451b
feat: sha3_256 dashboard account's password (#6084) 2021-11-09 15:41:28 +08:00