This topic provides answers to some commonly asked questions about calling the API operations of ApsaraMQ for Kafka.

Why is the value -1 returned for the LastTimestamp parameter when I 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.