Skip to content

Commit

Permalink
SCB-220 fixed rebase conflict
Browse files Browse the repository at this point in the history
Signed-off-by: seanyinx <sean.yin@huawei.com>
  • Loading branch information
seanyinx committed Jan 16, 2018
1 parent 3662c5a commit d6a8f1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -63,6 +63,7 @@ public boolean handle(TxEvent event) {
eventRepository.save(event);

executor.execute(() -> eventCallbacks.getOrDefault(event.type(), DO_NOTHING_CONSUMER).accept(event));
return true;
}

private void compensateIfAlreadyAborted(TxEvent event) {
Expand All @@ -77,8 +78,6 @@ private void compensateIfAlreadyAborted(TxEvent event) {

private boolean isCompensationScheduled(TxEvent event) {
return eventsToCompensate.getOrDefault(event.globalTxId(), emptySet()).contains(event.localTxId());

return true;
}

private void compensate(TxEvent event) {
Expand Down
Expand Up @@ -277,6 +277,7 @@ public void doNotStartSubTxOnFailure() {
asyncStub.onConnected(serviceConfig, compensateResponseObserver);

blockingStub.onTxEvent(eventOf(TxStartedEvent, localTxId, parentTxId, "service a".getBytes(), "method a"));
blockingStub.onTxEvent(someGrpcEvent(TxEndedEvent));

blockingStub.onTxEvent(someGrpcEvent(TxAbortedEvent));

Expand Down

0 comments on commit d6a8f1b

Please sign in to comment.