You can reset consumer offsets to skip the accumulated or undesired messages and restart consumption. You can also consume messages after a specified point in time regardless of whether the messages before this point in time have been consumed.
Usage notes
When you reset consumer offsets, take note of the following items:
- You cannot reset consumer offsets in broadcasting consumption mode.
- You cannot reset consumer offsets by specifying a message ID, message key, or tag.
- You can reset only the consumer offsets of a group ID in TCP mode in the MessageQueue for Apache RocketMQ console.
Procedure
FAQ
- What can I do if I failed to reset the consumer offsets by using the preceding two
methods?
- Check whether the clustering consumption mode is used. You cannot reset consumer offsets in broadcasting consumption mode.
- Check whether the consumer is in the Online state. The consumer must be online before you can reset the consumer offset.
- Check the SDK version. This issue may occur if the SDK version is too low. We recommend that you upgrade the SDK to the latest version. For example, SDK for Java in TCP mode must be 1.8.0.Final or later. For more information, see Release notes.
- Why am I unable to skip accumulated messages after I reset consumer offsets?
If you select Start Consumption from Latest Offset to reset the consumer offset, the messages in the retry process cannot be cleared. You can select Start Consumption from Offset Corresponding to Specified Point in Time instead to reset the consumer offset.