ciacono opened a new pull request, #6884:
URL: https://github.com/apache/hbase/pull/6884

   …pt recovered.edits
   
   If an exception happens in the call to finishWriterThreads in the 
org.apache.hadoop.hbase.wal.RecoveredEditsOutputSink.close method, the call to 
closeWriters should not execute, as it may lead to a race condition that leads 
to file corruption if the regionserver aborts. The execution of closeWriters in 
this case would write the trailer in parallel with writer threads, causing 
corruption, and then the corrupt file would get renamed and finalized when it 
should not be. This corruption causes problems when the region is then to be 
assigned.
   To fix this, when finishWriterThreads throws an exception or is not 
successful, the corrupt files should not be renamed and finalized.


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