HBASE-1791 Timeout in IndexRecordWriter

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@807752 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2009-08-25 18:32:39 +00:00
parent 08c60dc517
commit 6599d13108
2 changed files with 9 additions and 2 deletions

View File

@ -3,6 +3,8 @@ Release 0.21.0 - Unreleased
INCOMPATIBLE CHANGES
BUG FIXES
HBASE-1791 Timeout in IndexRecordWriter (Bradford Stephens via Andrew
Purtell)
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -136,9 +136,14 @@ extends RecordWriter<ImmutableBytesWritable, LuceneDocumentWrapper> {
*/
@Override
public void run() {
while (!closed) {
try {
context.setStatus("closing");
context.setStatus("Closing");
} catch (IOException e) {
return;
}
while (!closed) {
try {
context.progress();
Thread.sleep(1000);
} catch (InterruptedException e) {
continue;