Updated on 2023-10-12 GMT+08:00

Verifying Consumption

Scenario

Consumption verification is to resend messages to a specified online client to verify that the consumer can receive messages. Consumption verification causes repeated message consumption.

Prerequisites

  • Consumption can be verified only when an instance is in the Running state.
  • Ensure that the client for which consumption is to be verified is online and the consumer has subscribed to the topic whose message is to be resent.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner to select a region.

    Select the region where your RocketMQ instance is located.

  3. Click and choose Middleware > Distributed Message Service for RocketMQ to open the console of DMS for RocketMQ.
  4. Click a RocketMQ instance to go to the details page.
  5. In the navigation pane, choose Message Query.
  6. Set search criteria on the top of the page.
  7. In the row that contains the message to be resent, click Verify Consumption. The Verify Consumption dialog box is displayed.
  8. Set parameters by referring to Table 1.

    Table 1 Consumption verification parameters

    Parameter

    Description

    Group ID

    Name of the consumer group for which consumption is to be verified.

    Client ID

    ID of the client for which consumption is to be verified.

    Figure 1 Verifying consumption

  9. Click OK.

    After the message is successfully resent, "Verified" is displayed on the top of the Verify Consumption dialog box. The client should have received the resent message.

    Consumption verification causes repeated message consumption.