emqx/changes/ce
Thales Macedo Garitezi d6935b6a67 feat: add port scan diagnostics to mria waiting for tables checks
Fixes https://emqx.atlassian.net/browse/EMQX-10944

Also updates ekka -> 0.15.15, mria -> 0.6.4

How to test
===========

1. Start 2 or more EMQX nodes and merge them in a cluster.
2. Stop them in order.
3. Start only the first node that was stopped in the previous step.
4. Wait until the log is printed.

Or, more easily:

1. Start 2 or more EMQX nodes and merge them in a cluster.
2. Stop all but one.
3. Run `mria_mnesia:diagnosis([]).` on that node.

Example output
==============

```
   Check check_open_ports should get ok but got #{msg =>
                                                     "some ports are unreachable",
                                                 results =>
                                                     #{'emqx@172.100.239.4' =>
                                                           #{open_ports =>
                                                                 #{4370 => false,
                                                                   5370 =>
                                                                       false},
                                                             ports_to_check =>
                                                                 [4370,5370],
                                                             resolved_ips =>
                                                                 [{172,100,239,
                                                                   4}],
                                                             status =>
                                                                 bad_ports},
                                                       'emqx@172.100.239.5' =>
                                                           #{open_ports =>
                                                                 #{4370 => false,
                                                                   5370 =>
                                                                       false},
                                                             ports_to_check =>
                                                                 [4370,5370],
                                                             resolved_ips =>
                                                                 [{172,100,239,
                                                                   5}],
                                                             status =>
                                                                 bad_ports}}}
```

After one node is back:

```
   Check check_open_ports should get ok but got #{msg =>
                                                     "some ports are unreachable",
                                                 results =>
                                                     #{'emqx@172.100.239.4' =>
                                                           #{ports_to_check =>
                                                                 [4370,5370],
                                                             resolved_ips =>
                                                                 [{172,100,239,
                                                                   4}],
                                                             status => ok},
                                                       'emqx@172.100.239.5' =>
                                                           #{open_ports =>
                                                                 #{4370 => false,
                                                                   5370 =>
                                                                       false},
                                                             ports_to_check =>
                                                                 [4370,5370],
                                                             resolved_ips =>
                                                                 [{172,100,239,
                                                                   5}],
                                                             status =>
                                                                 bad_ports}}}
```
2023-09-21 14:29:01 -03:00
..
.gitkeep chore: refactor the format-changelog script 2023-02-16 15:25:31 +08:00
feat-11568.en.md feat(republish): allow templating mqtt properties 2023-09-06 09:54:02 -03:00
feat-11597.en.md chore: add changelog 2023-09-13 10:54:50 +03:00
feat-11620.en.md docs: add changelog 2023-09-15 16:07:23 +02:00
feat-11637.en.md feat: add port scan diagnostics to mria waiting for tables checks 2023-09-21 14:29:01 -03:00
feat-11642.en.md feat(quic): bump to quicer 0.0.200 and emqtt 1.9.0 2023-09-20 16:43:15 +02:00
feat-11642.zh.md feat(quic): bump to quicer 0.0.200 and emqtt 1.9.0 2023-09-20 16:43:15 +02:00
fix-11567.en.md feat(nodetool): print shutdown status messages while EMQX is stopping 2023-09-12 19:55:16 +03:00
fix-11568.en.md feat(republish): allow templating mqtt properties 2023-09-06 09:54:02 -03:00
fix-11584.en.md fix: telemetry report error on windows 2023-09-11 16:48:30 +08:00
fix-11605.en.md docs: add changelog for pr 11605 2023-09-13 20:55:42 +02:00
fix-11622.en.md docs: add changelogs for pr 11622 2023-09-17 19:13:22 +02:00
fix-11623.en.md fix(esockd): upgrade esockd from 5.9.6 to 5.9.7 2023-09-17 19:44:04 +02:00