Commit Graph

3398 Commits

Author SHA1 Message Date
Zaiming (Stone) Shi
b3d9605722 chore(conf): EMQ X -> EMQX in conf files 2022-02-16 17:50:41 +01:00
k32
e2e92e9a46
Merge pull request #7032 from k32/fix-prom-mria
fix(prometheus): Convert all non-numeric values to undefined
2022-02-16 15:48:06 +01:00
k32
0922f3bde3 fix(prometheus): Convert all non-numeric values to undefined 2022-02-16 14:45:30 +01:00
Zaiming (Stone) Shi
79d7832a07
Merge pull request #7020 from zmstone/docs-more-renames-in-descriptive-info
docs: More EMQ X -> EMQX rename in descriptive strings
2022-02-16 13:43:19 +01:00
zhongwencool
310a97305a
Merge pull request #6997 from zhongwencool/epoch-rfc3339-convert
feat(schema): schema support epoch_second, epoch_millisecond type.
2022-02-16 16:51:38 +08:00
Yang Miao
78cad0a528
Merge pull request #6989 from EMQ-YangM/up_master
refactor(emqx_resource): Improve grouping strategy for emqx_resource_instance
2022-02-16 16:26:28 +08:00
lafirest
7b49daba1f fix(emqx_slow_subs): fix test case error 2022-02-16 15:10:23 +08:00
zhongwencool
34fe5082c4 fix(schema): schema global validations not working 2022-02-16 14:20:15 +08:00
EMQ-YangM
f70fc1a3b0 fix(emqx_bridge, emqx_retainer): hard code group name 2022-02-16 14:02:13 +08:00
Zaiming (Stone) Shi
2e94880bb6 docs: More EMQ X -> EMQX rename in descriptive strings 2022-02-15 22:39:11 +01:00
k32
689ea6546e
Merge pull request #7018 from k32/mria-prom-metrics
feat(mria): Add prometheus metrics
2022-02-15 21:26:25 +01:00
k32
c00f4ef83c
fix: Add replayq_len
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
2022-02-15 20:02:46 +01:00
k32
6d49754988 feat(mria): Add prometheus metrics 2022-02-15 19:10:05 +01:00
Zaiming (Stone) Shi
667d66eb1e docs(README): EMQ X -> EMQX 2022-02-15 16:19:26 +01:00
lafirest
1dbfe0dce6
Merge pull request #7012 from lafirest/fix/trap_exit
fix(emqx_slow_subs): add trap exit flag
2022-02-15 17:38:21 +08:00
lafirest
1724536afa
Merge pull request #7011 from lafirest/fix/exhook_ssl
fix(emqx_exhook): replace ssl-config schema with emqx_schema:client_s…
2022-02-15 16:55:12 +08:00
lafirest
667dccc3f6 fix(emqx_slow_subs): add trap exit flag 2022-02-15 16:44:15 +08:00
lafirest
28bf20a366 fix(emqx_exhook): replace ssl-config schema with emqx_schema:client_ssl_opts_schema 2022-02-15 16:25:23 +08:00
JimMoen
0c108035a8 test(connector): connector require ecpool start 2022-02-15 12:45:50 +08:00
JimMoen
23c6a404b9 test(connector): avoid define macro duplicate 2022-02-15 10:42:08 +08:00
JimMoen
0e5105db6e test(authn): mongo health check more than once 2022-02-15 10:41:26 +08:00
JimMoen
2a1fba97da test(auth): resource use connector provided default port 2022-02-15 10:41:26 +08:00
JimMoen
28735dc6d7 refactor(connector): parse servers for rs and sharded mongo_type 2022-02-15 10:41:26 +08:00
lafirest
65fa7a85ad fix(emqx_slow_subs): fix flakey test case 2022-02-15 10:33:53 +08:00
JimMoen
ab7c2b72e3 refactor(connector): db connector provide default port 2022-02-15 00:51:48 +08:00
Chris Hicks
15d3e86089
Merge pull request #7002 from mononym/EMQX-3144-mongo-db
feat: add basic mongodb test suite
2022-02-14 14:57:22 +01:00
Chris Hicks
b1fbc08e3e
Merge pull request #6976 from mononym/EMQX3142-my-sql
feat: Add mysql tests for connector
2022-02-14 14:22:15 +01:00
Chris
7962583ac8 feat: add basic mongodb test suite 2022-02-14 13:11:15 +01:00
JianBo He
3f8c0072ce
Merge pull request #6986 from HJianBo/more-fields-for-client-online-offline
feat(event): add `connected_at` into client_disconnected event
2022-02-14 18:06:50 +08:00
EMQ-YangM
48942f9c93 refactor(emqx_resource): move unused macro to test 2022-02-14 17:40:39 +08:00
Chris
c635e7306d feat: Add mysql tests for connector 2022-02-14 10:31:04 +01:00
zhongwencool
1413809b81
Merge pull request #6948 from zhongwencool/fix-watermark-master
fix(watermark): watermark should use > instead of >=
2022-02-14 16:11:47 +08:00
zhongwencool
80169ccb68 chore: add more eunit for emqx_datetime 2022-02-14 15:30:03 +08:00
JianBo He
229a62bcc9
Merge pull request #6988 from HJianBo/acl-metrics-add
feat(metrics): add acl metrics statistics
2022-02-14 15:06:04 +08:00
EMQ-YangM
75b2963efc test(authn,authz): fix create function 2022-02-14 14:10:10 +08:00
zhongwencool
498434826a feat(schema): schema support epoch_second, epoch_millisecond type. 2022-02-14 11:35:32 +08:00
Zaiming (Stone) Shi
b9343891e4
Merge pull request #6946 from zmstone/refactor-license-simplify-parser-error
refactor: treat throw exception as `{error, Reason}` return
2022-02-11 19:09:40 +01:00
Zaiming (Stone) Shi
e2a67760b1 fix(emqx_authz_file): throw exception for catch 2022-02-11 17:16:00 +01:00
Ilya Averyanov
5f32d4cbd8 chore(mongo): reduce test flackyness 2022-02-11 15:52:35 +03:00
EMQ-YangM
79badcb403 fix(emqx_retainer): fix function 'create_resource' 2022-02-11 18:36:55 +08:00
EMQ-YangM
fae91d72f2 fix(emqx_authz): fix function 'create_resource' 2022-02-11 18:36:55 +08:00
EMQ-YangM
580901b678 fix(emqx_authn): fix create api 2022-02-11 18:36:55 +08:00
EMQ-YangM
d8819559f7 fix(emqx_resource): fix emqx_bridge create 2022-02-11 18:36:55 +08:00
EMQ-YangM
df57daaabb refactor(emqx_resource): improve grouping strategy for emqx_resource_instance 2022-02-11 18:36:55 +08:00
JianBo He
f471214956 feat(metrics): add acl metrics statistics 2022-02-11 15:20:18 +08:00
JianBo He
e895de2c5e
Merge branch 'master' into port/slow_subs 2022-02-11 14:37:10 +08:00
zhongwencool
9d5a7ead0c
Merge pull request #6984 from zhongwencool/improve-qos-type
chore(schema): use emqx_schema:qos() instead of union integer.
2022-02-11 12:17:38 +08:00
JianBo He
29af3d4023
Merge pull request #6982 from lafirest/fix/ssl_verify
fix(emqx_exhook): add verify field in the ssl conf
2022-02-11 11:26:27 +08:00
DDDHuang
fbefc92178
Merge pull request #6969 from DDDHuang/ws_client_metrics
feat(metrics): ws client support more send&recv metrics
2022-02-11 11:14:56 +08:00
JianBo He
94609e31e4 feat(event): add connected_at into client_disconnected event
port from v4.3: https://github.com/emqx/emqx/pull/6822
2022-02-11 11:01:59 +08:00
zhongwencool
372f628c9e
Merge pull request #6980 from thalesmg/bugfix-find-alias-clause-50
fix(channel): wrong case clause when alias is inexistent (5.0)
2022-02-11 10:38:31 +08:00
zhongwencool
f5415589e9 chore(schema): use emqx_schema:qos() instead of union integer. 2022-02-11 10:09:59 +08:00
DDDHuang
511060adb4 fix(test): ws conn metrics 2022-02-11 09:38:41 +08:00
DDDHuang
0826084ce9 feat(metrics): ws client support more send&recv metrics 2022-02-11 09:38:41 +08:00
DDDHuang
97e22cc6a8
Merge pull request #6971 from DDDHuang/ab_hocon
fix(api): auto subscribe api hocon support
2022-02-11 09:33:12 +08:00
firest
4063bcea9f fix(emqx_exhook): add verify field in the ssl conf 2022-02-11 06:24:05 +08:00
Thales Macedo Garitezi
609d8a5efa
fix(channel): wrong case clause when alias is inexistent (5.0)
Fixes #6978 .
2022-02-10 16:23:54 -03:00
Chris Hicks
ddbb78557a
Merge pull request #6958 from mononym/EMQX-3143-postgre-sql
feat: create tests for connector pgsql module and refactoring
2022-02-10 14:41:10 +01:00
Zaiming (Stone) Shi
91366a71a4 fix: try Expr of only catches exceptions in Expr but not cases clauses 2022-02-10 13:12:22 +01:00
Zaiming (Stone) Shi
7363e6b1fd fix(emqx_conf): fix MFA arity type spec 2022-02-10 12:40:46 +01:00
Zaiming (Stone) Shi
49d3163471 fix(emqx_cluster_rpc): do not log throw stacktrace
also not logging the call arguments as it may containe sensitive info
2022-02-10 12:40:46 +01:00
Zaiming (Stone) Shi
a86b684535 fix(emqx_config_handler): do not log throw exception 2022-02-10 12:40:46 +01:00
Zaiming (Stone) Shi
774c0a3d7f chore: remove a space from CLI command cluster_call usage printout 2022-02-10 12:40:46 +01:00
Chris Hicks
c456434e38
Merge pull request #6954 from mononym/remove_unused_functions_from_resource_and_connector
refactor: remove unused/old functions
2022-02-10 11:10:20 +01:00
JianBo He
9f648631fe
Merge pull request #6964 from HJianBo/fix_stomp_unexpected_linefeed_for_5
fix(stomp): fix unexpected_linefeed error if the packet truncated on …
2022-02-10 17:52:41 +08:00
Chris
14630568d6 feat: create tests for connector pgsql module and refactoring 2022-02-10 10:40:46 +01:00
firest
361ca5be42 fix(emqx_slow_subs): change rpc call to bpapi 2022-02-10 17:40:19 +08:00
firest
b9884de1d0 fix: fix proper test error 2022-02-10 16:09:17 +08:00
DDDHuang
5d17bd8441 fix(api): auto subscribe api hocon support 2022-02-10 15:40:12 +08:00
firest
2fcc24dea6 fix(emqx_slow_subs): fix test case error 2022-02-10 15:16:37 +08:00
lafirest
b09683bfcd fix(emqx_slow_subs): fix some errors and test cases 2022-02-10 14:55:19 +08:00
lafirest
0c48bd92db feat: port slow subs from v4.4 2022-02-10 14:51:37 +08:00
JianBo He
e2b330e8be fix(stomp): fix unexpected_linefeed error if the packet truncated on headers 2022-02-10 12:26:13 +08:00
DDDHuang
29790a0c1e fix(test): ifdb test SUITE & version compatibility 2022-02-10 10:33:39 +08:00
DDDHuang
fbb8f46fcd fix(api): qos shcema & code formate 2022-02-10 10:33:39 +08:00
DDDHuang
471e867bf3 fix(api): rename client info recv_msg.dropped.await_pubrel_timeout 2022-02-10 10:33:25 +08:00
Shawn
fd87bce8f7
Merge pull request #6950 from terry-xiaoyu/remove_extra_spaces
fix: format the code to remove extra spaces
2022-02-10 09:35:18 +08:00
Thales Macedo Garitezi
e861f3963e
Merge pull request #6947 from thalesmg/fix-mgmt-cluster-print
fix(ctl): fix formatting when printing messages without arguments
2022-02-09 11:50:59 -03:00
Shawn
81edbd232d fix: reformat some code style 2022-02-09 18:57:36 +08:00
Shawn
8207090419 fix: format the code to remove extra spaces 2022-02-09 18:46:49 +08:00
Shawn
e6997dc1ce
Merge pull request #6942 from terry-xiaoyu/hook_delivery_drop
Hook delivery drop
2022-02-09 18:28:56 +08:00
Chris
c2772fdd09 refactor: remove unused/old functions 2022-02-09 10:14:13 +01:00
zhongwencool
94b0676ac6
Merge pull request #6922 from k32/static-seeds-type
refactor(schema): Refactor cluster_static seeds type
2022-02-09 16:34:30 +08:00
zhongwencool
47b1dde7fd
Merge pull request #6949 from zhongwencool/add-qos-type
feat(schema): support qos type.
2022-02-09 16:13:11 +08:00
Chris Hicks
bf4672b863
Merge pull request #6917 from mononym/EMQX-3155-emqx-connector-and-emqx-bridge-test-suites-rely-on-leftover-test-state-from-the-emqx-dashboard-tests
fix: decouple suite tests
2022-02-09 09:03:01 +01:00
Shawn
9118cfb4ad fix(connection): revert metric names for 'recv_msg.dropped.await_pubrel_timeout' 2022-02-09 15:41:28 +08:00
zhongwencool
36cf00108c feat(schema): support qos type. 2022-02-09 15:16:43 +08:00
Yang Miao
e9c65447c4
Merge pull request #6863 from EMQ-YangM/fix_hc
fix(emqx_resource_instance): create health_check process when create …
2022-02-09 13:36:34 +08:00
Shawn
e220810b90 fix(sn): update calling to session APIs 2022-02-09 12:08:06 +08:00
zhongwencool
b2d77cac39 fix(watermark): watermark should use greater than(>), not greater than or equal to(>=). 2022-02-09 11:17:45 +08:00
Shawn
ce05c14ef2
Merge pull request #6936 from terry-xiaoyu/empty_rule_id
fix(rule): deny POST empty rule ids
2022-02-09 10:16:27 +08:00
lafirest
de75edd176
Merge pull request #6925 from lafirest/fix/flaky-test
fix(emqx_ratelimiter): relax the rate bound of test cases
2022-02-09 10:01:38 +08:00
Thales Macedo Garitezi
152bbe6bb3
refactor: rm unused fn 2022-02-08 18:18:18 -03:00
Thales Macedo Garitezi
01794c2d2c
fix(ctl): fix formatting when printing messages without arguments
Without passing an empty argument list to `emqx_ctl:print`, formatting
instructions like `~n` are being printed literally.

```
Ignore.~nJoin the cluster successfully.~nCluster status: #{running_nodes =>
                      ['emqx@emqx-0.int.thalesmg','emqx@emqx-1.int.thalesmg',
                       'emqx@emqx-2.int.thalesmg','emqx@emqx-3.int.thalesmg',
                       'emqx@emqx-4.int.thalesmg'],
                  stopped_nodes => []}
```
2022-02-08 17:48:19 -03:00
Chris
d0b0b05aa4 fix: decouple suite tests 2022-02-08 14:53:01 +01:00
Shawn
b69dca4f08 feat(rule): add testcase for '/delivery_dropped' 2022-02-08 20:37:40 +08:00
k32
5a1b18ae86 fix(system_monitor): Fix conditional start 2022-02-08 12:46:27 +01:00
Shawn
707284db31 fix(session): update calling to session APIs 2022-02-08 18:49:38 +08:00
Shawn
93092657b9 fix(session): update testcases 2022-02-08 18:33:06 +08:00
zhongwencool
3b4eade1ad
Merge pull request #6900 from zhongwencool/restricted-shell
feat(shell): add restricted shell and user_default
2022-02-08 17:25:28 +08:00
Shawn
2879001694 fix(metrics): rename metrics 'messages.dropped.expired' to 'messages.dropped.await_pubrel_timeout' 2022-02-08 17:14:59 +08:00
Shawn
06168f7080 refactor(session): pass ClientInfo as first params to APIs of emqx_session 2022-02-08 16:52:47 +08:00
zhongwencool
f3fa302d84 chore: print only the port number when bound on all interfaces. 2022-02-08 15:25:22 +08:00
zhongwencool
5f2618912f chore(format): format port by ts 2022-02-08 11:03:54 +08:00
zhongwencool
00fe866392 chore(test): add restricted_shell CT test. 2022-02-08 10:49:11 +08:00
Shawn
b2f027bcf7 feat(rule): add 'delivery.dropped' hook for rules 2022-02-08 10:32:25 +08:00
zhongwencool
b50ceac9bb chore(listener): change the listener binding format 0.0.0.0:port to :port. 2022-02-08 10:28:10 +08:00
Shawn
261e9929b6 fix(rule): deny POST empty rule ids 2022-02-08 09:57:44 +08:00
Ilya Averyanov
17599432d1 feat(license): add license application 2022-02-07 19:05:47 +03:00
k32
9c5d35e0db chore(ekka): Bump version to 0.12.0 2022-02-07 14:39:43 +01:00
k32
78c762479f feat(router): Mark CM_SHARD and ROUTE_SHARD as dirty 2022-02-07 12:38:59 +01:00
k32
dbe1282d32 chore(mria): Bump version to 0.2.0 2022-02-07 12:37:13 +01:00
EMQ-YangM
3b3f3fed76 refactor(emqx_resource_instance): add function create_default_checker 2022-02-07 17:49:51 +08:00
EMQ-YangM
8976e25b7a fix(emqx_resource_instance): create health_check process when create resources synchronously 2022-02-07 17:49:51 +08:00
zhongwencool
f24c05b1bd chore(shell): make restricted_shell prompt more friendly. 2022-02-07 15:33:59 +08:00
zhongwencool
b189d594c3 chore: fix dialyzer warning. 2022-02-07 15:33:59 +08:00
zhongwencool
3efa583830 feat(shell): add emqx version to prompt. 2022-02-07 15:33:59 +08:00
zhongwencool
6a701e098f feat(shell): add restricted shell and user_default 2022-02-07 15:33:59 +08:00
lafirest
467bb830b1 fix(emqx_ratelimiter): relax the rate bound of test cases 2022-02-07 13:57:48 +08:00
k32
f699de9773 feat(system_monitor): Bump version to 3.0.0 2022-02-07 02:22:11 +01:00
k32
987945def3 refactor(schema): Refactor cluster_static seeds type 2022-02-04 23:37:59 +01:00
k32
a54b4ddfd0 fix(emqx_schema): Set gen_rpc_client_driver automatically 2022-02-02 13:58:27 +01:00
k32
3050f86f09
Merge pull request #6906 from k32/gen-rpc-docs
Gen rpc docs
2022-02-01 13:50:03 +01:00
k32
470db453cb docs(rpc): Add descriptions for gen_rpc and logger 2022-02-01 01:16:07 +01:00
Zaiming (Stone) Shi
507952c473 feat: dump schema json file to dashbarod static dir 2022-01-31 16:38:41 +01:00
Zaiming (Stone) Shi
fe24892b6d fix(emqx_limiter): no white space in schema map name 2022-01-31 16:04:37 +01:00
Zaiming (Stone) Shi
f7703c906e refactor: move plain_check impl to emqx_hocon 2022-01-29 10:16:55 +01:00
zhongwencool
92cbf86951
Merge pull request #6890 from zhongwencool/dashboard-bind-support-ip
feat(dashboard): support bind specific ip(port or ip:port).
2022-01-29 16:09:05 +08:00
zhongwencool
928555546d
Merge pull request #6869 from EMQ-YangM/fix_start_pool
fix(emqx_connector): when start_pool fails, return error and reason
2022-01-29 10:45:45 +08:00
zhongwencool
8041524d20 chore(dashboard): warning wehn stop dashboard listener not found. 2022-01-29 10:36:53 +08:00
k32
5e01961dba
Merge pull request #6895 from k32/fix-graph
fix(emqx_mgmt): Fix network graph
2022-01-28 15:43:55 +01:00
k32
1127057291 fix(emqx_mgmt): Fix network graph 2022-01-28 13:39:27 +01:00
Zaiming (Stone) Shi
bda1b6d35e
Merge pull request #6892 from zmstone/docs-fix-override-conf-note
docs: fix override conf note
2022-01-28 12:35:23 +01:00
Zaiming (Stone) Shi
8da27899ea docs: fix override conf note 2022-01-28 11:05:06 +01:00
zhongwencool
ec5d1b1463 feat(dashboard): support bind specific ip(port or ip:port). 2022-01-28 16:52:03 +08:00
k32
052bd9081d docs(schema): Fix typos in the schema files 2022-01-27 22:39:19 +01:00
k32
4fe87b5e32 docs(emqx_conf): Fix spelling 2022-01-27 22:32:53 +01:00
Zaiming (Stone) Shi
0cde9e6ecf
Merge pull request #6878 from zmstone/slog-ftw
refactor: delete deprecated logging macros
2022-01-27 16:15:47 +01:00
Zaiming (Stone) Shi
d6f7ffec3c
Merge pull request #6881 from zmstone/refactor-upgrade-hocon-0.23.0
refactor: upgrade to hocon 0.23.0
2022-01-27 15:48:23 +01:00
zhongwencool
c049e296d4
Merge pull request #6852 from zhongwencool/fix-keepalive-init
fix(keepalive): keepalive desc improvement.
2022-01-27 22:41:10 +08:00
Zaiming (Stone) Shi
815c47e169 test: call logger apis directly 2022-01-27 15:19:50 +01:00
Thales Macedo Garitezi
bd0d331b64
Merge pull request #6636 from emqx/elixir-packages-mkII
ci(mix): build emqx packages with elixir
2022-01-27 11:10:30 -03:00
k32
8378f52d06
Merge pull request #6882 from kianmeng/fix-typos
(docs): fix typos
2022-01-27 13:25:44 +01:00
Kian-Meng Ang
fc92e4c8bf docs: fix typos 2022-01-27 12:29:38 +01:00
zhongwencool
a7676d0163 fix(doc): Update the documentation/keepalive according to the review. 2022-01-27 18:57:35 +08:00
Zaiming (Stone) Shi
6bf5f2c426 test: fix old hocon API calls 2022-01-27 08:21:31 +01:00
zhongwencool
3ce3c5c805 fix(doc): Update the documentation according to the review 2022-01-27 10:54:11 +08:00
Zaiming (Stone) Shi
cf1f19258e refactor(emqx_resource): catch only hocon throw exceptions 2022-01-27 00:23:08 +01:00
Zaiming (Stone) Shi
252d7e85d9 refactor: call new hocon apis 2022-01-27 00:23:08 +01:00
Zaiming (Stone) Shi
8c114db168 chore: pin hocon 0.23.0 2022-01-27 00:23:08 +01:00