Skip to content

fix: Handle poll idle ratio not being available.#19246

Merged
cryptoe merged 1 commit intoapache:masterfrom
gianm:fix-kinesis-reports
Apr 1, 2026
Merged

fix: Handle poll idle ratio not being available.#19246
cryptoe merged 1 commit intoapache:masterfrom
gianm:fix-kinesis-reports

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Apr 1, 2026

The change to RecordSupplier allows Kinesis task live reports to work again. They had been throwing UnsupportedOperationException.

The change to CostBasedAutoScaler differentiates poll idle ratio of -1 (no data) from 0 (never idle). There was already some logic in the class for dealing with the negative case: it would treat it like 0.5. But this logic had not been reachable due to extractPollIdleRatio returning 0 rather than -1 for the no-data case.

The change to RecordSupplier allows Kinesis task live reports to work
again. They had been throwing UnsupportedOperationException.

The change to CostBasedAutoScaler differentiates poll idle ratio of -1
(no data) from 0 (never idle). There was already some logic in the class
for dealing with the negative case: it would treat it like 0.5. But this
logic had not been reachable due to extractPollIdleRatio returning 0
rather than -1 for the no-data case.
Copy link
Copy Markdown
Contributor

@Fly-Style Fly-Style left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching a good path to unblock it, LGTM!

@cryptoe cryptoe merged commit fc63999 into apache:master Apr 1, 2026
38 checks passed
@github-actions github-actions bot added this to the 37.0.0 milestone Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants