HBASE-9257: TestAsyncProcess#testFailAndSuccess fails sometime due to a race condition

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1515075 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jeffreyz 2013-08-18 06:14:01 +00:00
parent 40870be471
commit c4ad6a6b1e

View File

@ -498,8 +498,8 @@ class AsyncProcess<CResult> {
if (callback != null) { if (callback != null) {
callback.failure(originalIndex, region, row, throwable); callback.failure(originalIndex, region, row, throwable);
} }
this.hasError.set(true);
errors.add(throwable, row, location); errors.add(throwable, row, location);
this.hasError.set(true);
} }
return canRetry; return canRetry;