Commit Graph

9404 Commits

Author SHA1 Message Date
EMQ-YangM 376c9ee261 refactor(emqx_resource): change the status of emqx_resource to 'connected/connecting/disconnecting' 2022-02-25 15:02:41 +08:00
DDDHuang 521efac8ea
Merge pull request #7138 from emqx/api_retainer
chore(autotest): Discard the container API test script
2022-02-25 14:39:54 +08:00
Zhongwen Deng 3aa9afc5bf fix: rpc get node info maybe crash when emqx_sys process is not start yet. 2022-02-25 14:20:19 +08:00
Zhongwen Deng 4eec83b0e5 fix: memsup's memory alway false. 2022-02-25 14:19:57 +08:00
xujun540 04279da8dd chore(autotest): Discard the container API test script 2022-02-25 14:11:57 +08:00
firest 2053d21bd5 fix(emqx_delayed): fix config update not working 2022-02-25 11:24:30 +08:00
firest 19d4dabd04 fix(emqx_retainer): fix test case error 2022-02-25 10:08:44 +08:00
Thales Macedo Garitezi 0e319d5e4e
fix: rm useless `catch` 2022-02-24 16:28:00 -03:00
Thales Macedo Garitezi 427866f8ad
test(sys_mon): add test for closed port 2022-02-24 15:13:18 -03:00
Thales Macedo Garitezi b46af91e74
test: disable export warning during tests 2022-02-24 14:20:36 -03:00
Thales Macedo Garitezi 60e791e0e3
test: add test case for elixir plugin 2022-02-24 14:20:36 -03:00
Thales Macedo Garitezi d89925ce7b
fix(sys_mon): guard before calling `erlang:port_info`
Sometimes, the `emqx_sys_mon:procinfo/1` might be called with
something that is not a port, like `[]`.  Not sure on the conditions
for this to happen.

```
2022-02-18T20:05:02.671592+00:00 [error] Generic server emqx_sys_mon terminating. Reason: {badarg,[{erlang,port_info,[[]],[{error_info,#{module => erl_erts_errors}}]},{emqx_sys_mon,portinfo,1,[{file,"/emqx/apps/emqx/src/emqx_sys_mon.erl"},{line,205}]},{emqx_sys_mon,'-handle_info/2-fun-5-',2,[{file,"/emqx/apps/emqx/src/emqx_sys_mon.erl"},{line,150}]},{emqx_sys_mon,suppress,3,[{file,"/emqx/apps/emqx/src/emqx_sys_mon.erl"},{line,184}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,695}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,771}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]}. Last message: {monitor,<0.7796.0>,busy_dist_port,[]}. State: #{events => [{busy_dist_port,#Port<0.127>}],timer => #Ref<0.2758388682.1853620226.133920>}.
```
2022-02-24 14:07:09 -03:00
Zhongwen Deng 114db2d14e chore: fix ct failed 2022-02-25 00:01:39 +08:00
Zaiming (Stone) Shi 91c8b8ab17
Merge pull request #7132 from zmstone/test-delete-dead-code
chore(pkg-tests.sh): delete dead code
2022-02-24 16:02:05 +01:00
Zhongwen Deng db584f79d6 feat: upgrade hocon to 0.25.0 to replace nullable with required. 2022-02-24 22:39:03 +08:00
Chris Hicks 2b8bcfac5e
Merge pull request #7127 from mononym/EMQX3142-my-sql
refactor(emqx_connector): refactor mysql tests to use resource api
2022-02-24 14:08:21 +01:00
JianBo He ffafbfaaa6 test(cm): refine testcases 2022-02-24 21:00:54 +08:00
JianBo He 9c1fe4336b refactor(cm): force kill the proc that failed to response takeover call
port from: #7026
2022-02-24 21:00:45 +08:00
Zaiming (Stone) Shi bdd1c32ceb chore: cosmetic, only indentation fix 2022-02-24 13:08:32 +01:00
Zaiming (Stone) Shi bd39fc6bb2 chore(pkg-tests.sh): delete dead code 2022-02-24 13:08:32 +01:00
firest 5bf1d77993 refactor(emqx_retainer): use hierarchical limiter for the flow control 2022-02-24 18:06:40 +08:00
Chris Hicks f7d78d0600
Merge pull request #7003 from mononym/EMQX-3145-redis
feat: add basic redis tests and bring redis connector module in line …
2022-02-24 10:38:41 +01:00
JianBo He fa921775e7
Merge pull request #6999 from lafirest/feat/esockd_limiter
feat(emqx_limiter): use hierarchical limiter for esockd
2022-02-24 17:33:51 +08:00
Chris 7e20369253 refactor(emqx_connector): refactor mysql tests to use resource api 2022-02-24 09:56:53 +01:00
Chris Hicks a1dbe6f31c
Merge pull request #7123 from mononym/EMQX-3143-postgre-sql
refactor: update postgres connector tests to use resource apis
2022-02-24 09:13:38 +01:00
Zhongwen Deng 334d315838 feat: gen hot conf schema.json. 2022-02-24 15:46:51 +08:00
Zhongwen Deng 574bbafc9b fix(schema): Ensure enum is atom or int. 2022-02-24 15:36:04 +08:00
zhongwencool d35ff9303a
Merge pull request #7119 from JimMoen/refactor-node-api
refactor(api): api_nodes spec use dashboard_swagger
2022-02-24 14:16:59 +08:00
JimMoen cf61349aef test(api_metrics): test `node_metrics` without aggergate 2022-02-24 11:33:10 +08:00
JimMoen 806cf3719b refactor(api): api_nodes spec use dashboard_swagger 2022-02-24 11:33:10 +08:00
Thales Macedo Garitezi 3d01380ccf
Merge pull request #7062 from thalesmg/bump-builder-image-50
chore(ci): update emqx-builder image
2022-02-23 16:18:20 -03:00
Thales Macedo Garitezi 8cac5f6b39
chore(ci): update emqx-builder image
Uses Elixir 1.13.3 and OTP 24.2.1-1.
2022-02-23 15:00:07 -03:00
Chris d306baf92f feat: add basic redis tests 2022-02-23 15:25:11 +01:00
Chris 5c6e3fce6a refactor: update postgres connector tests to use resource apis 2022-02-23 14:37:51 +01:00
Thales Macedo Garitezi 278361e6b6
Merge pull request #7110 from thalesmg/fix-flaky-order-prop
test(fix): fix flaky prop
2022-02-23 09:09:23 -03:00
Zaiming (Stone) Shi e6380a1911
Merge pull request #7104 from zmstone/fix-windows-build-5.0
[5.0] Fix windows build
2022-02-23 10:22:45 +01:00
JimMoen 7eb3c0d4e5
Merge pull request #7099 from HJianBo/swagger_api_mgmt_metrics
refactor(mgmt): refactor api_metrics with dashboard_swagger
2022-02-23 16:34:14 +08:00
zhanghongtong 5435a0978b ci(cross build): splitting cross builds and upload assets 2022-02-23 16:15:53 +08:00
zhongwencool b7f808db9e
Merge pull request #7027 from DDDHuang/error_code
feat: support http error code & error code api
2022-02-23 16:12:20 +08:00
JianBo He 4b04dfa85f fix(mgmt): fix api_metrics case_clause
Co-authored-by: JimMoen <LnJimMoen@outlook.com>
2022-02-23 15:45:21 +08:00
DDDHuang ee4ced82c5 fix: remove jmeter SUITE 2022-02-23 13:55:34 +08:00
lafirest c5d0c8da94
Merge pull request #7112 from lafirest/fix/slow_subs_test
fix(emqx_slow_subs): relax the check range of the test case
2022-02-23 10:32:34 +08:00
firest 511be52326 fix(emqx_limiter): fix dialyzer error 2022-02-23 10:29:25 +08:00
firest c027eee151 fix(emqx_slow_subs): relax the check range of the test case 2022-02-23 10:15:53 +08:00
firest e1875880bb fix(emqx_limiter): rename emqx_htb_generic to emqx_esockd_htb_limiter 2022-02-23 09:56:26 +08:00
Zaiming (Stone) Shi 271fda3d66 fix(windows): deal with space in install path 2022-02-22 23:39:26 +01:00
Zaiming (Stone) Shi 88343df95a fix(windows): delete stale find functions
some of the find_ functions are generated from the old rebar template
which will never be used since we:

1. always release erts
2. always generate sys.config
3. always generate vm.args
2022-02-22 23:37:00 +01:00
Zaiming (Stone) Shi d9bb616574 fix(windows): attach remote_console 2022-02-22 22:33:46 +01:00
Zaiming (Stone) Shi 0fa7b4a7d4 fix(windows): wrong clean start boot file path 2022-02-22 22:33:46 +01:00
Zaiming (Stone) Shi 893b844444 feat(windows): simplify emqx_ctl for windows 2022-02-22 22:33:37 +01:00