Commit Graph

7721 Commits

Author SHA1 Message Date
Traphalet a9e2051a69 chore(actions): update git actions versions 2022-12-08 11:34:46 +02:00
JimMoen 18b64be07f
Merge pull request #9339 from JimMoen/fix-pic-link
chore: fix README.md(s) picture link
2022-12-07 01:46:12 +08:00
Thales Macedo Garitezi ede0495939
Merge pull request #9470 from thalesmg/check-unpack-target-v43
fix(install_upgrade): check target version when unpacking (v4.3)
2022-12-06 13:09:26 -03:00
Thales Macedo Garitezi a94f3464f5 ci(fix): set container image with OTP 23
35850967ef/README.md?plain=1#L55
2022-12-02 16:49:13 -03:00
Thales Macedo Garitezi 10ef87c0bc fix(install_upgrade): check target version when unpacking (v4.3)
We already have a check to avoid upgrading from 4.3 to 4.4:

```
  Cannot upgrade/downgrade to 4.4.11-rc.3 from 4.3.17
  We only support relup between patch versions
  escript: exception error: {relup_not_allowed,unsupported_target_version}
    in function  install_upgrade_escript__escript__1670__7364__537878__24:validate_target_version/2 (/usr/lib/emqx/bin/install_upgrade.escript, line 444)
    in call from install_upgrade_escript__escript__1670__7364__537878__24:install/2 (/usr/lib/emqx/bin/install_upgrade.escript, line 58)
    in call from escript:run/2 (escript.erl, line 758)
    in call from escript:start/1 (escript.erl, line 277)
    in call from init:start_em/1
    in call from init:do_boot/3
```

But such check is missing for `unpack`, which may result in an
unusable node after just unpacking:

```
emqx@d70cfe0e8e62:~$ emqx ctl status
ERROR: node_is_not_running!
```

The issue apparently arises from `nodetool` trying to use the
`compiler` lib from the newer version rather than the old one:

```
  + ERL_FLAGS=' -start_epmd false -epmd_module ekka_epmd -proto_dist ekka'
  + /usr/lib/emqx/erts-11.2.2.8/bin/escript /usr/lib/emqx/bin/nodetool -name emqx@127.0.0.1 -setcookie emqxsecretcookie ping
  + die 'node_is_not_running!' 1
  + set +x
  ERROR: node_is_not_running!

  emqx@d70cfe0e8e62:~$ /usr/lib/emqx/erts-11.2.2.8/bin/escript /usr/lib/emqx/bin/nodetool -name emqx@127.0.0.1 -setcookie emqxsecretcookie ping
  escript: Internal error: undef
  =ERROR REPORT==== 2-Dec-2022::19:02:39.150274 ===
  Loading of /usr/lib/emqx/lib/compiler-8.1.1/ebin/compile.beam failed: badfile

  =ERROR REPORT==== 2-Dec-2022::19:02:39.150271 ===
  beam/beam_load.c(1879): Error loading module compile:
    This BEAM file was compiled for a later version of the run-time system than 23.
    To fix this, please recompile this module with an 23 compiler.
    (Use of opcode 176; this emulator supports only up to 170.)
```
2022-12-02 16:16:49 -03:00
Zaiming (Stone) Shi b1f72f4c36
Merge pull request #9438 from zmstone/1123-stop-releasing-v43
build: detach 4.3 branches from 4.4 branches
2022-11-28 19:19:47 +01:00
Zaiming (Stone) Shi eda6df7a19 build: detach 4.3 branches from 4.4 branches
Starting from this commit, there will be no more merges from 4.3 to 4.4.
That is: fixes affecting both 4.3 and 4.4 will have to be sent
in separate pull requests.

This change is due to two reasons:
1. The ever increasing divergence from 4.4 is making the merges
   to cause more and more conflicts which are also harder to resolve
2. Opensource edition 4.3 has come to the 18-month EOL by November 2022
2022-11-28 14:36:42 +01:00
Zaiming (Stone) Shi d166d217ca
Merge pull request #9425 from zmstone/1126-chore-merge-release-v43-back-to-main
1126 chore merge release v43 back to main
2022-11-28 09:43:04 +01:00
Ivan Dyachkov 2e58152c32 ci: bump otp version to 23.3.4.18-1 2022-11-27 17:47:22 +01:00
Zaiming (Stone) Shi 1c1e158874 ci: build slim package on centos 8
centos 7 has some git compatibility issues
2022-11-27 17:42:42 +01:00
Zaiming (Stone) Shi 8b37baad3a ci: upgrade build-env image to erl23.3.4.18-1 2022-11-27 17:34:25 +01:00
Zaiming (Stone) Shi ad024871e1 ci: fix artifact path for macos 2022-11-27 13:27:29 +01:00
Zaiming (Stone) Shi 027c05af99 test(emqx_channel): fix two flaky tests 2022-11-27 13:15:06 +01:00
Zaiming (Stone) Shi f3fd906043 chore: bump emqx app vsn 2022-11-27 09:18:56 +01:00
Zaiming (Stone) Shi 478b006e68 chore: update versions 2022-11-26 21:04:53 +01:00
Zaiming (Stone) Shi 3c84f4b254 chore: re-generate appup 2022-11-26 18:14:15 +01:00
Zaiming (Stone) Shi fdfb735327 Merge remote-tracking branch 'origin/release-v43' into main-v4.3 2022-11-26 15:59:29 +01:00
Zaiming (Stone) Shi f2dd44982b docs: update v4.3.22 change logs 2022-11-25 23:39:16 +01:00
Zaiming (Stone) Shi 0d7d9e4022 chore: bump to version v4.3.22 2022-11-25 23:35:33 +01:00
JimMoen c2a9b8c846
chore: fix README.md(s) picture link 2022-11-24 09:54:00 +08:00
Zaiming (Stone) Shi 854836a4c1 chore: bump version to v4.3.22-rc.1 2022-11-23 22:46:37 +01:00
lafirest 06bbb17320
Merge pull request #9391 from lafirest/fix/ctl_atom_leak_v4.3
chore: make remsh node name away from the atom table overflow
2022-11-21 21:51:02 +08:00
firest 2cdc953435 chore: update changes 2022-11-18 14:29:29 +08:00
firest 61517f8280 chore: make remsh node name away from the atom table overflow 2022-11-18 14:23:49 +08:00
Xinyu Liu f1572ea84e
Merge pull request #9384 from terry-xiaoyu/utf8_resource_id_in_alarm_name
fix: generating alarm name for utf8 resource id failed
2022-11-17 10:37:58 +08:00
Shawn 252b03abd8 fix: generating alarm name for utf8 resource id failed 2022-11-17 10:23:33 +08:00
lafirest 55aa282d34
Merge pull request #9338 from lafirest/fix/jwt_acl
fix(jwt): fix the jwt ACL will return a wrong result when the token is expired
2022-11-16 18:32:30 +08:00
Xinyu Liu 0b02d72480
Merge pull request #9370 from terry-xiaoyu/enlarge_resource_alive_timeout
Enlarge resource alive timeout
2022-11-16 10:22:42 +08:00
Shawn 039135368e chore: update mongodb-erlang to v3.0.15 2022-11-16 10:22:21 +08:00
Shawn f843938364 fix: don't check resource alive for the temporary resources 2022-11-16 09:43:04 +08:00
Zaiming (Stone) Shi 545c6176b6
Merge pull request #9361 from id/chore-macos-sign-crc32cer-nif-for-ee
chore: sign crc32cer nif on macos when packaging ee
2022-11-15 19:58:05 +01:00
Ivan Dyachkov c0674001fb chore(sync from ee): sign extra binaries on macos when packaging 2022-11-15 16:40:45 +01:00
lafirest e3675f5807
Merge pull request #9340 from lafirest/feat/warning_for_default_cookie
refactor(cookie): Warning message when boot with default Erlang cookie
2022-11-15 22:34:30 +08:00
Shawn e4a3dd9ee8 fix: enlarge the timeout when check alive of resources 2022-11-15 21:07:01 +08:00
firest ed3dc0b614 chore: update changes 2022-11-15 10:47:13 +08:00
firest f4a14ecf66 refactor(cookie): Warning message when boot with default Erlang cookie 2022-11-15 10:31:09 +08:00
firest 8a0158e21d chore: update changes 2022-11-15 09:52:34 +08:00
firest ebfaecfa91 fix(jwt): fix the jwt ACL will return a wrong result when the token is expired 2022-11-15 09:50:49 +08:00
Xinyu Liu e9490654ae
Merge pull request #9359 from JimMoen/fix-topic-rewrite-wildcard
Fix topic rewrite wildcard
2022-11-15 09:38:09 +08:00
JimMoen db08efa0ac
test(rewrite): invalided topic rewrite rule 2022-11-15 09:01:04 +08:00
JimMoen 32a885017b
chore: bump appup.src for `emqx_mod_rewrite` 2022-11-15 09:01:03 +08:00
JimMoen 1bb31776c9
fix(rewrite): add topic rewrite validation for filter or name 2022-11-15 09:01:03 +08:00
Zaiming (Stone) Shi 60c8db5905
Merge pull request #9366 from zmstone/1114-ci-use-self-hosted-for-all-erlang-tests
ci: use self-hosted for all Erlang tests
2022-11-14 21:23:20 +01:00
Zaiming (Stone) Shi 2b22ff0710 ci: ensure github action workspace is clear 2022-11-14 20:11:50 +01:00
Zaiming (Stone) Shi 949916fc1c ci: use self-hosted for all Erlang tests
prepare, proper, eunit, ct and cover
2022-11-14 19:57:36 +01:00
JimMoen 1f05498b27
Merge pull request #9360 from JimMoen/fix-api-method-case-sensitive
fix(api): uppercase api request method
2022-11-14 23:38:05 +08:00
zhongwencool 5e3814c480
Merge pull request #9356 from zhongwencool/tls-version-validation
feat: validate tls_versions value
2022-11-14 20:12:09 +08:00
JimMoen 7b5340ce09
fix(api): uppercase api request method 2022-11-14 17:55:17 +08:00
Zaiming (Stone) Shi e667b564d8 docs: add a comment to .ci/build_packages/Dockerfile 2022-11-14 10:10:34 +01:00
Zaiming (Stone) Shi 6abb451f56
Merge pull request #9348 from zmstone/1110-add-comments
docs: add a comment to schema default value
2022-11-14 09:48:44 +01:00