Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@aarondav
aarondav / DirectOutputCommitter.scala
Last active January 12, 2020 11:57
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 January 6, 2021 17:01
UncaughtExceptionHandler in ActorSystemImpl does not behave as hoped
// 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