fix: use correct timestamp template for kafka and remove such fields from azure event hub producer #11513
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
targeting
release-52Fixes https://emqx.atlassian.net/browse/EMQX-10847
Checking the whole Kafka message from AEH, it seems like the timestamp type is append,
which means that it’s the broker who controls the timestamp, and the timestamp defined by
the producer is ignored.
Ref: https://kafka.apache.org/documentation/#brokerconfigs_log.message.timestamp.type
Example message consumed from AEH:
Note the ts_type above is append.
Example message from a Kafka broker whose ts type is create:
Unfortunately, I couldn’t find anywhere in AEH where that configuration could be changed.
Summary
🤖 Generated by Copilot at 1622b7d
This pull request adds a new feature to the
emqx_bridge_azure_event_hubapplication to allow sending messages with custom fields to Azure Event Hub. It also fixes some bugs and improves the test cases for theemqx_bridge_azure_event_hubandemqx_bridge_kafkaapplications. The version number of theemqx_bridge_azure_event_hubapplication is incremented.PR Checklist
Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:
changes/(ce|ee)/(feat|perf|fix)-<PR-id>.en.mdfilesChecklist for CI (.github/workflows) changes
changes/dir for user-facing artifacts update