Skip to content

Commit

Permalink
Revert handle exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Demogorgon314 committed Jan 4, 2023
1 parent 7f68d72 commit e97ca14
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,7 @@ private void handleReleaseEvent(String serviceUnit, ServiceUnitStateData data) {
private void handleSplitEvent(String serviceUnit, ServiceUnitStateData data) {
if (isTargetBroker(data.broker())) {
splitServiceUnit(serviceUnit, data)
.whenComplete((__, e) -> {
if (e != null) {
// When has exception, change the bundle state back to Splitting -> Owned .
pubAsync(serviceUnit, new ServiceUnitStateData(Owned, data.broker(), data.sourceBroker()));
log(e, serviceUnit, data, null);
}

});
.whenComplete((__, e) -> log(e, serviceUnit, data, null));
}
}

Expand Down

0 comments on commit e97ca14

Please sign in to comment.