thisisnic commented on issue #41310:
URL: https://github.com/apache/arrow/issues/41310#issuecomment-7131539420

   Thanks for reporting this! I'm going through older bug issues to see if we 
can close them out or we need further action.
   
   This still behaves as described on pyarrow 26.0.1, and it can be reproduced 
deterministically against MinIO without threads, which may help anyone picking 
up #41311: write a Parquet file, open it with 
`pq.ParquetFile(s3.open_input_file(path))` so the footer is read, overwrite the 
object with a different Parquet file, then call `.read()`. That fails with 
`OSError: Couldn't deserialize thrift`, which looks like a corrupt file and 
gives no hint that the object changed; without the overwrite the read is 
correct.
   
   A smaller change than #41311 that would help on any bucket, versioned or 
not: remember the ETag from the initial `HEAD` and send it as `If-Match` on the 
ranged reads, so a file that changes mid-read fails with a clear "object was 
modified" error instead of a thrift error. Pinning the version ID as in #41311 
could then make the read succeed on versioned buckets.
   


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

Reply via email to