Skip to content

Cold data control may skip the group with the highest threshold #10851

Description

@yuluo-yx

Description

ColdDataCgCtrService sorts configured thresholds by subtracting two long values and narrowing the result to int. A large threshold delta can overflow the comparator and place the largest threshold after smaller entries. Because only three groups are decelerated per cycle, the group with the highest threshold can be skipped.

Expected behavior

Sort thresholds with Long.compare so the three largest eligible groups are always processed.

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