Skip to content

Commit

Permalink
fix blocking unit tests by providing customized reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
忍冬 committed Aug 31, 2018
1 parent 8d9495a commit 60eec77
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ private[streaming] class FileBasedWriteAheadLog(
"WriteAheadLogManager" + callerName.map(c => s" for $c").getOrElse("")
}
private val forkJoinPool = ThreadUtils.newForkJoinPool(threadpoolName, 20)
private val executionContext = ExecutionContext.fromExecutorService(forkJoinPool)
private val executionContext = ExecutionContext
.fromExecutorService(forkJoinPool, { e: Throwable => throw e })

override protected def logName = {
getClass.getName.stripSuffix("$") +
Expand Down

0 comments on commit 60eec77

Please sign in to comment.