exceptionfactory commented on code in PR #7940:
URL: https://github.com/apache/nifi/pull/7940#discussion_r1540029633
##########
nifi-mock/src/main/java/org/apache/nifi/util/StandardProcessorTestRunner.java:
##########
@@ -229,33 +226,32 @@ public void run(final int iterations, final boolean
stopOnFinish, final boolean
executorService.awaitTermination(runWait,
TimeUnit.MILLISECONDS);
} catch (final InterruptedException e1) {
}
+ }
- int finishedCount = 0;
- boolean unscheduledRun = false;
- for (final Future<Throwable> future : futures) {
- try {
- final Throwable thrown = future.get(); // wait for the
result
- if (thrown != null) {
- throw new AssertionError(thrown);
- }
+ int finishedCount = 0;
+ boolean unscheduledRun = false;
+ for (final Future<Throwable> future : futures) {
+ try {
+ final Throwable thrown = future.get(); // wait for the result
+ if (thrown != null) {
+ throw new AssertionError(thrown);
+ }
- if (++finishedCount == 1 && stopOnFinish) {
- unscheduledRun = true;
- unSchedule();
- }
- } catch (final Exception e) {
+ if (++finishedCount == 1 && stopOnFinish) {
+ unscheduledRun = true;
+ unSchedule();
}
+ } catch (final Exception e) {
+ e.printStackTrace();
Review Comment:
Thanks, I think it is best to avoid the `printStackTrace()` for now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]