Jayer created HDDS-14724:
----------------------------

             Summary: 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
         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]

Reply via email to