fix race when the exception was thrown from inside FJP computation but the future wasn't canceled yet to fix JobUtilTest sporadic failures

GitOrigin-RevId: cda7a3de89a5fa695b7b1978c8b16d0e98692287
This commit is contained in:
Alexey Kudravtsev
2020-01-13 10:37:45 +00:00
committed by intellij-monorepo-bot
parent c54b13f901
commit 3a5df2bf07
@@ -172,6 +172,7 @@ public class JobLauncherImpl extends JobLauncher {
complete(null); // complete manually before calling callback
}
catch (Throwable throwable) {
myStatus = Status.EXECUTED;
completeExceptionally(throwable);
}
finally {