Skip to content

Commit 9f2a9bb

Browse files
authored
add workflow history sync gRPC (#710)
1 parent 0e4e4d3 commit 9f2a9bb

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/main/java/com/uber/cadence/internal/compatibility/Thrift2ProtoAdapter.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,16 @@ public GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(
217217
GetWorkflowExecutionHistoryRequest getRequest)
218218
throws BadRequestError, EntityNotExistsError, ServiceBusyError,
219219
ClientVersionNotSupportedError, TException {
220-
com.uber.cadence.api.v1.GetWorkflowExecutionHistoryResponse response =
221-
grpcServiceStubs
222-
.workflowBlockingStub()
223-
.getWorkflowExecutionHistory(
224-
RequestMapper.getWorkflowExecutionHistoryRequest(getRequest));
225-
return ResponseMapper.getWorkflowExecutionHistoryResponse(response);
220+
try {
221+
com.uber.cadence.api.v1.GetWorkflowExecutionHistoryResponse response =
222+
grpcServiceStubs
223+
.workflowBlockingStub()
224+
.getWorkflowExecutionHistory(
225+
RequestMapper.getWorkflowExecutionHistoryRequest(getRequest));
226+
return ResponseMapper.getWorkflowExecutionHistoryResponse(response);
227+
} catch (StatusRuntimeException e) {
228+
throw ErrorMapper.Error(e);
229+
}
226230
}
227231

228232
@Override

0 commit comments

Comments
 (0)