Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

SWARM-1944: MP FT - support @Asynchronous @Retry. #870

Merged
merged 1 commit into from
Apr 10, 2018

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Apr 9, 2018

Motivation

There is a bug in MP FT implementation.

Modifications

Fixed the relevant parts of the code.

Result

@Retry with @asynchronous (and with fallback) works if an exception is
thrown from within a business method.

Motivation
----------
There is a bug in MP FT implementation.

Modifications
-------------
Fixed the relevant parts of the code.

Result
------
@Retry with @asynchronous (and with fallback) works  if an exception is
thrown from within a business method.
@mkouba mkouba requested a review from a team as a code owner April 9, 2018 19:22
@mkouba mkouba requested review from Ladicek and antoinesd April 9, 2018 19:22
@heiko-braun heiko-braun merged commit 0a5b4fe into thorntail:master Apr 10, 2018
@Ladicek
Copy link
Contributor

Ladicek commented Apr 10, 2018

LGTM post merge :-)

@Ladicek
Copy link
Contributor

Ladicek commented Apr 10, 2018

Though I guess we could have moved the retry logic into DefaultCommand entirely -- we now have it split into 2 places, one for sync and one for async case.

@mkouba
Copy link
Contributor Author

mkouba commented Apr 10, 2018

Hm, for sync we create a separate command for each invocation/retry which is imho more correct. For async we only have one command and invoke/retry within its run(). It could be feasible though. I came to the project later when basic design decision were already made...

@Ladicek
Copy link
Contributor

Ladicek commented Apr 10, 2018

Got it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants