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:
parent
08c60dc517
commit
6599d13108
|
@ -3,6 +3,8 @@ Release 0.21.0 - Unreleased
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
HBASE-1791 Timeout in IndexRecordWriter (Bradford Stephens via Andrew
|
||||||
|
Purtell)
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-1760 Cleanup TODOs in HTable
|
HBASE-1760 Cleanup TODOs in HTable
|
||||||
|
|
|
@ -136,9 +136,14 @@ extends RecordWriter<ImmutableBytesWritable, LuceneDocumentWrapper> {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
try {
|
||||||
|
context.setStatus("Closing");
|
||||||
|
} catch (IOException e) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
while (!closed) {
|
while (!closed) {
|
||||||
try {
|
try {
|
||||||
context.setStatus("closing");
|
context.progress();
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue