Commit Graph

7486 Commits

Author SHA1 Message Date
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
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