Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,15 @@ public static void runTests(PerfStressTest<?>[] tests, boolean sync, int paralle
throw new RuntimeException(e);
}
} else {
// Exceptions like OutOfMemoryError are handled differently by the default Reactor schedulers. Instead of terminating the
// Flux, the Flux will hang and the exception is only sent to the thread's uncaughtExceptionHandler and the Reactor
// Schedulers.onHandleError. This handler ensures the perf framework will fail fast on any such exceptions.
Schedulers.onHandleError((t, e) -> {
System.err.print(t + " threw exception: ");
e.printStackTrace();
System.exit(1);
});

Flux.range(0, parallel)
.parallel()
.runOn(Schedulers.boundedElastic())
Expand Down