Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG REPORT] Partition order messages are out of order. #530

Closed
onceicy opened this issue Apr 2, 2024 · 0 comments
Closed

[BUG REPORT] Partition order messages are out of order. #530

onceicy opened this issue Apr 2, 2024 · 0 comments

Comments

@onceicy
Copy link
Contributor

onceicy commented Apr 2, 2024

BUG REPORT

  1. Please describe the issue you observed:
  • What did you do (The steps to reproduce)?

Start a source task such as a RmqSourceTask. Then let the source task send some messages when Calling sourceMessage.getKeys() yields the same return value.

  • What is expected to see?

The messages sent to the target RocketMQ cluster via the connector are preserved in the same order as the source messages.

  • What did you see instead?

The messages sent to the target RocketMQ cluster via the connector are out of order.

  1. Please tell us about your environment:

rocketmq 4.7, RmqSourceTask

  1. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

producer.send(sourceMessage, callback) is executed asynchronously, meaning it runs independently from the main execution flow and does not block the calling thread. When sending partition order messages, connector should use synchronous send functions such as producer.send(sourceMessage) instead of asynchronous functions such as producer.send(sourceMessage, callback).

onceicy pushed a commit to onceicy/rocketmq-connect that referenced this issue Apr 2, 2024
onceicy pushed a commit to onceicy/rocketmq-connect that referenced this issue Apr 2, 2024
onceicy pushed a commit to onceicy/rocketmq-connect that referenced this issue Apr 2, 2024
onceicy pushed a commit to onceicy/rocketmq-connect that referenced this issue Apr 16, 2024
onceicy pushed a commit to onceicy/rocketmq-connect that referenced this issue Apr 16, 2024
onceicy pushed a commit to onceicy/rocketmq-connect that referenced this issue May 20, 2024
sunxiaojian pushed a commit that referenced this issue May 23, 2024
* [ISSUES #530] fix order message bug

* [ISSUES #530] add order message compatible with rocketmq 4.x config

* [ISSUES #530] add order message compatible with rocketmq 4.x config user guide

* [ISSUES #530] Change the configuration item from 'ordering.msg.compatible.v4' to 'ordering.msg.enable'

---------

Co-authored-by: 靖愉 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants