nickva opened a new pull request, #5395:
URL: https://github.com/apache/couchdb/pull/5395

   It's a 10 year old undocumented config that never worked properly. We tried 
using it at Cloudant initially then promptly disabled it and never touched it 
again.
   
   What usually reports corruption fairly well is the "read beyond eof" check. 
As such improve that error:
     * Show the total bytes requested
     * Show both the current record file position and the actual file size
   
   In some cases we relied on badmatch for error reporting. Instead, use the 
early throw gen_server trick to return a proper error with a file path and 
position if pread fail.
   
   Improve tests, and make sure to cover the case of external truncation. An 
operator might truncate a file by hand, or a partial file send.
   
   


-- 
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: notifications-unsubscr...@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to