[
https://issues.apache.org/jira/browse/HDDS-14724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-14724.
-------------------------------------
Fix Version/s: 2.2.0
Resolution: Fixed
> Fix infinite CPU spin loop in ECBlockInputStream
> ------------------------------------------------
>
> Key: HDDS-14724
> URL: https://issues.apache.org/jira/browse/HDDS-14724
> Project: Apache Ozone
> Issue Type: Bug
> Components: Ozone Client
> Affects Versions: 2.1.0
> Reporter: Jayer
> Assignee: Jayer
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.2.0
>
> Attachments: spark-executor-cpu-spin-jstack.txt
>
>
> Currently, ECBlockInputStream#readFromStream only checks if actualRead == -1
> (EOF). If 0 bytes are returned while expectedRead > 0, the stream fails to
> advance its position but remains in the while loop, causing an infinite CPU
> spin and thread starvation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]