Skip to content

mqadmin commands misorder large counters and timestamps #10850

Description

@yuluo-yx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions