gerlowskija opened a new pull request, #5383:
URL: https://github.com/apache/solr/pull/5383

   https://issues.apache.org/jira/browse/SOLR-18643
   
   
   # Description
   
   Prior to this PR, the BackupRepository implementation didn't specify any 
particular semantics around what should happen *after* an I/O error like a 
network timeout.  This caused inconsistent behavior in our implementations: 
some like the "Local" repository cleaned up after themselves, but others 
didn't.  This makes it hard for surrounding code in "core" to reason about how 
to respond to failure, and it makes individual file operations in our 
backup/restore code non-idempotent.
   
   # Solution
   
   Prior to this commit, the BackupRepository implementation didn't specify any 
particular semantics around what should happen *after* an I/O error like a 
network timeout.  This caused inconsistent behavior in our implementations: 
some like the "Local" repository cleaned up after themselves, but others didn't.
   
   This commit aligns the semantics of all repositories so that they leave no 
partial files behind on an error.  These semantics avoid orphaning files and 
have the added benefit of making individual BackupRepository operations more 
idempotent.
   
   # Tests
   
   New unit tests in S3OuputStreamMockitoTest and AbstractBackupRepositoryTest.
   
   # Checklist
   
   Please review the following and check all that apply:
   
   - [x] I have reviewed the guidelines for [How to 
Contribute](https://github.com/apache/solr/blob/main/CONTRIBUTING.md) and my 
code conforms to the standards described there to the best of my ability.
   


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