Anurag-S1ngh opened a new pull request, #19251:
URL: https://github.com/apache/iceberg/pull/19251

   ## Summary
   
   - `ADLSInputStream.read` and `read(byte[], int, int)` let the raw 
`IOException` from the Azure SDK through when the underlying blob disappears 
after the stream is opened.
   - Translate the wrapped not-found error to `NotFoundException`, matching 
`openRange`, `readFully`, and `GCSInputStream`.
   
   ## Changes
   
   - `ADLSInputStream`: catch `IOException` in both read methods, pass the 
cause to `throwNotFoundIfNotPresent`, and rethrow the original exception when 
it is not a not-found error.
   - `TestADLSInputStream`: cover mid-stream not-found for single-byte and 
buffered reads.
   
   ## Testing
   
   - `./gradlew :iceberg-azure:test --tests 
"org.apache.iceberg.azure.adlsv2.*"` passes.
   - Both new tests fail without the change.
   - `spotlessApply` run for the module.
   
   Closes #17062
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to