István Fajth created HDDS-15225:
-----------------------------------

             Summary: Fix BlockDataStreamOutput.hsync() exception handling
                 Key: HDDS-15225
                 URL: https://issues.apache.org/jira/browse/HDDS-15225
             Project: Apache Ozone
          Issue Type: Test
          Components: Ozone Client
            Reporter: István Fajth
            Assignee: István Fajth


BlockDataStreamOutput.hsync() has an empty catch block that discards all 
exceptions from handleFlush(). This means a failed putBlock or watchForCommit 
during hsync is silently ignored, and the caller believes the sync succeeded. 
KeyDataStreamOutput then proceeds to call OM hsyncKey() for data that was never 
acknowledged by datanodes.

The Ratis path (RatisBlockOutputStream.hsync()) correctly propagates 
exceptions. The fix aligns the DataStream hsync with the Ratis behavior: 
propagate IOException directly, wrap checked exceptions in IOException.

Verification: unit tests skipped in HDDS-15170 turn green.



--
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