FutureUtils.waitForAll(futures.values()).get();
terminationFuture.get(); } catch (Exception e) { exception = ExceptionUtils.firstOrSuppressed(e, exception);
terminationFuture.get(); } catch (Exception e) { exception = ExceptionUtils.firstOrSuppressed(e, exception);
.exceptionally( throwable -> { LOG.info("Batch request {} slots, but only {} are fulfilled.", allAssignFutures.getNumFuturesTotal(), allAssignFutures.getNumFuturesCompleted()); if (strippedThrowable instanceof CancellationException) { allAssignFutures.cancel(false);
.thenAccept( (Collection<Execution> executionsToDeploy) -> { for (Execution execution : executionsToDeploy) { int numTotal = allAllocationsFuture.getNumFuturesTotal(); int numComplete = allAllocationsFuture.getNumFuturesCompleted(); String message = "Could not allocate all requires slots within timeout of " + timeout + ". Slots required: " + numTotal + ", slots allocated: " + numComplete;
allTerminal.whenComplete( (Void value, Throwable throwable) -> { if (throwable != null) {
allTerminal.whenComplete( (Void value, Throwable throwable) -> { if (throwable != null) {
.whenComplete( (Void ignored, Throwable error) -> { if (error != null) {
allTerminal.whenComplete( (Void ignored, Throwable throwable) -> { if (throwable != null) {
allTerminal.whenComplete( (Void value, Throwable throwable) -> { if (throwable != null) {
allTerminal.whenComplete( (Void ignored, Throwable throwable) -> { if (throwable != null) {
allTerminal.thenAccept(new AcceptFunction<Void>() { @Override public void accept(Void value) {
.thenAccept( (Collection<Execution> executionsToDeploy) -> { for (Execution execution : executionsToDeploy) { int numTotal = allAllocationsFuture.getNumFuturesTotal(); int numComplete = allAllocationsFuture.getNumFuturesCompleted(); String message = "Could not allocate all requires slots within timeout of " + timeout + ". Slots required: " + numTotal + ", slots allocated: " + numComplete;
.whenComplete( (Void ignored, Throwable error) -> { if (error != null) {
.whenComplete( (Void ignored, Throwable error) -> { if (error != null) {
jobVerticesTerminationFuture.whenComplete( (Void ignored, Throwable throwable) -> { if (throwable != null) {
allTerminal.whenComplete( (Void ignored, Throwable throwable) -> { if (throwable != null) {
allTerminal.thenAccept(new AcceptFunction<Void>() { @Override public void accept(Void value) {
jobVerticesTerminationFuture.whenComplete( (Void ignored, Throwable throwable) -> { if (throwable != null) {
Collection<JobException> exceptions = FutureUtils.combineAll(futures).get();