HBASE-9730 Exceptions in multi operations are not handled correctly
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1530728 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
208787b5b1
commit
7709eb393a
@ -4043,8 +4043,6 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
|
|||||||
try {
|
try {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (ClientProtos.Action action: mutations) {
|
for (ClientProtos.Action action: mutations) {
|
||||||
ClientProtos.ResultOrException.Builder resultOrExceptionBuilder =
|
|
||||||
ClientProtos.ResultOrException.newBuilder();
|
|
||||||
MutationProto m = action.getMutation();
|
MutationProto m = action.getMutation();
|
||||||
Mutation mutation;
|
Mutation mutation;
|
||||||
if (m.getMutateType() == MutationType.PUT) {
|
if (m.getMutateType() == MutationType.PUT) {
|
||||||
@ -4088,9 +4086,8 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (IOException ie) {
|
} catch (IOException ie) {
|
||||||
ResultOrException resultOrException = ResponseConverter.buildActionResult(ie).build();
|
|
||||||
for (int i = 0; i < mutations.size(); i++) {
|
for (int i = 0; i < mutations.size(); i++) {
|
||||||
builder.addResultOrException(resultOrException);
|
builder.addResultOrException(getResultOrException(ie, mutations.get(i).getIndex()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
long after = EnvironmentEdgeManager.currentTimeMillis();
|
long after = EnvironmentEdgeManager.currentTimeMillis();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user