Commit Graph

14012 Commits

Author SHA1 Message Date
Thales Macedo Garitezi
632bffd451 fix: return friendly message when kafka producer fails to start (rv5.0)
Fixes https://emqx.atlassian.net/browse/EMQX-9392

The returned information does not allow to diagnose the issue (i.e.: a
connection issue due to the wrong host and port, the wrong password
failing authn).  However, such information is printed to the logs.

This changes the returned error to the API so that the user is hinted
at looking at the logs for further investigation of the error.
2023-03-30 11:51:36 -03:00
Zaiming (Stone) Shi
9b35aeec6d
Merge pull request #10267 from Kinplemelon/kinple/for-upgrade-dashboard
chore: upgrade dashboard to e1.0.5-beta.4 for ee
2023-03-29 15:10:30 +02:00
Thales Macedo Garitezi
5089449203
Merge pull request #10260 from thalesmg/minor-refactor-basic-usage-rule-rv50
refactor(rule_engine): use more helper functions
2023-03-29 09:44:23 -03:00
Kinplemelon
d62698dd0b chore: upgrade dashboard to e1.0.5-beta.4 for ee 2023-03-29 16:32:18 +08:00
Zaiming (Stone) Shi
11c120f87c chore: bump emqx app vsn 2023-03-28 21:19:03 +02:00
Zaiming (Stone) Shi
4b428f7a29 chore: bump version to e5.0.2-rc.2 2023-03-28 21:18:21 +02:00
Zaiming (Stone) Shi
575e7cad01
Merge pull request #10261 from thalesmg/fix-kconsumer-flaky-test-rv50
test: fix flaky kafka consumer test
2023-03-28 21:13:52 +02:00
Thales Macedo Garitezi
64faccf50b test: fix flaky kafka consumer test 2023-03-28 14:50:55 -03:00
Thales Macedo Garitezi
d126c7dc62 refactor(rule_engine): use more helper functions
Follow up to
https://github.com/emqx/emqx/pull/10251#discussion_r1150710899 and
https://github.com/emqx/emqx/pull/10251#discussion_r1150720420
2023-03-28 13:46:56 -03:00
Thales Macedo Garitezi
b78d835e08
Merge pull request #10251 from thalesmg/fix-ingress-bridge-rule-dependency-rv50
fix(rule_engine): count referenced bridges in `from` clauses as dependencies (rv5.0)
2023-03-28 12:00:22 -03:00
Thales Macedo Garitezi
1a7ca7235e
Merge pull request #10249 from thalesmg/fix-kafka-offset-doc-rv50
feat(kafka_consumer): tie `offset_reset_policy` and `begin_offset` together (rv5.0)
2023-03-28 11:37:46 -03:00
Zaiming (Stone) Shi
96dc653914
Merge pull request #10258 from thalesmg/fix-kafka-producer-buffer-support-rv50
fix(kafka_producer): add back `is_buffer_supported` callback
2023-03-28 16:05:16 +02:00
Thales Macedo Garitezi
1824e7efcc fix(rule_engine): count referenced bridges in from clauses as dependencies (rv5.0)
Fixes https://emqx.atlassian.net/browse/EMQX-9325

Currently, ingress bridges referenced in the `FROM` clause of rules
are not being accounted as dependencies.

When we try to delete an ingress bridge that's referenced in a rule
like `select * from "$bridges/mqtt:ingress"`, that bridge does not
trigger an UI warning about dependent actions.
2023-03-28 10:31:10 -03:00
Thales Macedo Garitezi
1c8333030c fix(kafka_producer): add back is_buffer_supported callback
Fixes https://emqx.atlassian.net/browse/EMQX-9366

This callback was accidentally removed while adding another feature,
which made the buffer workers to be used for this bridge while they
shouldn’t be.
2023-03-28 09:33:18 -03:00
Thales Macedo Garitezi
69fc1123ee refactor: change enum constructors and improve docs 2023-03-27 17:30:17 -03:00
Zaiming (Stone) Shi
48b5e91d60
Merge pull request #10250 from zmstone/0327-test-fix-flaky-Kafka-consumer-test
test: test with only one Kafka partition for bad config recover test
2023-03-27 19:58:19 +02:00
Thales Macedo Garitezi
5cf09209cd feat: tie offset_reset_policy and begin_offset together
To make the configuration more intuitive and avoid exposing more
parameters to the user, we should:

1) Remove reset_by_subscriber as an enum constructor for
`offset_reset_policy`, as that might make the consumer hang
indefinitely without manual action.

2) Set the `begin_offset` `brod_consumer` parameter to `earliest` or
`latest` depending on the value of `offset_reset_policy`, as that’s
probably the user’s intention.
2023-03-27 14:20:31 -03:00
Zaiming (Stone) Shi
da5e6f3d0a test: test with only one Kafka partition for bad config recover test 2023-03-27 17:38:34 +02:00
Thales Macedo Garitezi
0d36b179c0 docs: fix kafka offset reset policy config description 2023-03-27 11:22:01 -03:00
Zaiming (Stone) Shi
e59362a332 docs: fix both original and merged change logs 2023-03-24 21:39:04 +01:00
Zaiming (Stone) Shi
3490a7dc1d docs: fix a few zh version change log wording 2023-03-24 18:10:31 +01:00
Zaiming (Stone) Shi
bdc9ed849a docs: Generate changelog for v5.0.21 2023-03-24 16:46:51 +01:00
Zaiming (Stone) Shi
a3f6036721 build: fix changelog format in cut.sh 2023-03-24 16:46:05 +01:00
Zaiming (Stone) Shi
2cca6b1d5d
Merge pull request #10234 from thalesmg/fix-kconsumer-label-rv50
docs(kafka_consumer): make specific labels for key/value encoding modes
2023-03-24 15:36:38 +01:00
Zaiming (Stone) Shi
bf29919708
Merge pull request #10160 from thalesmg/hide-ocsp-v50
chore(ocsp): hide ocsp from schema for now
2023-03-24 15:32:47 +01:00
Thales Macedo Garitezi
166191abd6 chore(ocsp): hide ocsp from schema for now
We're going to release it in a later version.  So, for now, we'll just
hide it.
2023-03-24 10:04:16 -03:00
Thales Macedo Garitezi
c92af4f763 docs: fix quote 2023-03-24 09:48:35 -03:00
Thales Macedo Garitezi
a239f0523a
docs: improve descriptions
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2023-03-24 09:23:06 -03:00
Thales Macedo Garitezi
ca820dfefc
docs: improve descriptions
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2023-03-24 09:21:08 -03:00
Thales Macedo Garitezi
5bdc71af6f docs(kafka_consumer): make specific labels for key/value encoding modes
https://emqx.atlassian.net/browse/EMQX-9312
2023-03-24 09:08:27 -03:00
Ivan Dyachkov
ae2f02327d
Merge pull request #10233 from Kinplemelon/kinple/for-upgrade-dashboard
chore: upgrade dashboard to e1.0.5-beta.3 for ee and v1.2.0 for ce
2023-03-24 12:11:55 +01:00
Ivan Dyachkov
dc0e99b1fc
Merge pull request #10231 from id/chore-cut-e5.0.2-rc.1
chore: e5.0.2-rc.1
2023-03-24 11:40:27 +01:00
Kinplemelon
1b83a88393 chore: upgrade dashboard to e1.0.5-beta.3 for ee and v1.2.0 for ce 2023-03-24 17:49:27 +08:00
JimMoen
c55a123c9d
Merge pull request #10188 from JimMoen/refine-changes
chore: refine change for merged PRs
2023-03-24 16:19:52 +08:00
Ivan Dyachkov
0208fc8296 chore: e5.0.2-rc.1 2023-03-24 08:55:31 +01:00
JimMoen
1574b54666
chore: refine change for merged PRs 2023-03-24 11:17:34 +08:00
Zaiming (Stone) Shi
3559003070
Merge pull request #10216 from Kinplemelon/kinple/kafka-nodelay-label
docs: correct the chinese label for the `socket_nodelay` field
2023-03-23 13:30:42 +01:00
Zaiming (Stone) Shi
af11fbac9b
Merge pull request #10218 from Kinplemelon/kinple/for-upgrade-dashboard
chore: upgrade dashboard to e1.0.5-beta.2 for ee
2023-03-23 13:30:08 +01:00
Kinplemelon
64e810956c chore: upgrade dashboard to e1.0.5-beta.2 for ee 2023-03-23 17:59:33 +08:00
Kinplemelon
28544e62df docs: correct the chinese label for the socket_nodelay field 2023-03-23 16:27:09 +08:00
Andrew Mayorov
356be81aa4
Merge pull request #10202 from keynslug/fix/EMQX-9269/bridge-list
fix(bridge-api): unflatten nodes' bridge lists back
2023-03-22 12:54:45 +03:00
Andrew Mayorov
af7b2215ca
fix(bridge-api): unflatten nodes' bridge lists back
Bridge lists were erroneously flattened in cad6492c. This causes
bridge listing fail in emqx clusters consisting of more than 1 node.
2023-03-22 11:35:09 +03:00
Zaiming (Stone) Shi
33606fa14c
Merge pull request #10114 from zmstone/remove-metrics-in-bridge-listing
Remove metrics in bridge listing
2023-03-20 12:27:48 +01:00
Erik Timan
2d75c7d6d9 fix(emqx_bridge): remove metrics from non-dedicated bridge API endpoints
Metrics should only be exposed via the /bridges/:id/metrics endpoint,
and not in other operations such as getting the list of all bridges, or
in the response when a bridge has been created. This commit removes all
traces of metrics for the non-dedicated API endpoints.
2023-03-20 09:43:11 +01:00
zhongwencool
6a668c35db
Merge pull request #10167 from zhongwencool/fix-swagger-doc-500-crash
fix: swagger doc 500 crash
2023-03-19 16:28:32 +08:00
Zhongwen Deng
b529a0bce1 test: add swagger.json api test 2023-03-19 13:05:32 +08:00
Zhongwen Deng
f8573ae8d7 fix: swagger doc 500 crash 2023-03-19 12:34:06 +08:00
Ivan Dyachkov
66d8e4e1e2
Merge pull request #10139 from Rory-Z/feat/helm-support-extra-volume
feat(helm): helm chart support extraVolumeMounts and extraVolumes
2023-03-17 15:16:36 +00:00
Ivan Dyachkov
d9d19ac36a
Merge pull request #10161 from zmstone/0317-e5.0.2-v5.0.21-code-freeze
0317 e5.0.2 v5.0.21 code freeze
2023-03-17 14:21:04 +00:00
Zaiming (Stone) Shi
8519b0daa8 chore: simplify git diff command in format-changelog.sh 2023-03-17 13:53:15 +01:00