Description
Several mqadmin comparators subtract long values and cast the result to int. Consumer lag, tag counts, and message store timestamps can therefore be ordered incorrectly once their difference exceeds the int range.
Affected commands include consumerProgress, printMessageByQueue, and queryMsgByUniqueKey.
Expected behavior
Use overflow-safe long comparison so command output remains correctly ordered for large values.
Description
Several mqadmin comparators subtract long values and cast the result to int. Consumer lag, tag counts, and message store timestamps can therefore be ordered incorrectly once their difference exceeds the int range.
Affected commands include consumerProgress, printMessageByQueue, and queryMsgByUniqueKey.
Expected behavior
Use overflow-safe long comparison so command output remains correctly ordered for large values.