All Products
Search
Document Center

:Why is the value -1 returned for the LastTimestamp parameter when I call the GetConsumerProgess operation?

Last Updated:May 13, 2024

This topic describes possible causes for the issue that the value -1 is returned for the LastTimestamp parameter when you call the GetConsumerProgess operation.

Possible causes:

  • The topics that you subscribe to do not use cloud storage. The value of the LastTimestamp can be returned only for topics that use cloud storage.

  • The version of the producer client is outdated. The value of the LastTimestamp parameter indicates the time when the last consumed message was sent. If the version of the producer client is outdated, the message sending time is null. As a result, the value of the LastTimestamp parameter cannot be returned as expected.

  • The group that you use is automatically created. In this case, the value of the LastTimestamp parameter can be returned as expected only after you create and register a group that has the same name in the ApsaraMQ for Kafka console.