nbalajee opened a new pull request #1288: HUDI-117 Close file handle before 
throwing an exception due to append…
URL: https://github.com/apache/incubator-hudi/pull/1288
 
 
   … failure.
   
   Add test cases to handle/verify stage failure scenarios.
   
   ## What is the purpose of the pull request
   * Fix for HDFS "LeaseRecoveryInProgress" exception (triggered by an append 
failure) that results in stage failures and eventually job getting killed.
   
   ## Brief change log
   * Add a shutdown hook to handle JVM crash or executor getting killed, during 
write.
   * Upon encountering an append failure, close the file handle, so that 
subsequent task attempts on a different executor would be able to acquire lease 
on the .log file.
   
   ## Verify this pull request
   
   This change added tests and can be verified as follows:
   
   
     - Added test cases to verify that upon stage failures, data records 
present in multiple log files can be successfully handled/merged.
     
   ## Committer checklist
   
    - [ x] Has a corresponding JIRA in PR title & commit
    
    - [x ] Commit message is descriptive of the change
    
    - [x ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to