Skip to content

Instantly share code, notes, and snippets.

@aarondav
aarondav / DirectOutputCommitter.scala
Last active Jan 12, 2020
DirectOutputCommitter.scala
View DirectOutputCommitter.scala
/*
* Copyright 2015 Databricks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@aarondav
aarondav / ExceptionCatchingActorSystemImpl.scala
Last active Jan 6, 2021
UncaughtExceptionHandler in ActorSystemImpl does not behave as hoped
View ExceptionCatchingActorSystemImpl.scala
// Must be in akka.actor package as ActorSystemImpl is protected[akka].
package akka.actor
import java.util.concurrent.TimeUnit
import scala.concurrent.Future
import scala.concurrent.duration.FiniteDuration
import com.typesafe.config.ConfigFactory