Skip to content
Snippets Groups Projects
Commit 0528b85c authored by Sean Owen's avatar Sean Owen Committed by Andrew Or
Browse files

SPARK-4430 [STREAMING] [TEST] Apache RAT Checks fail spuriously on test files

Another trivial one. The RAT failure was due to temp files from `FailureSuite` not being cleaned up. This just makes the cleanup more reliable by using the standard temp dir mechanism.

Author: Sean Owen <sowen@cloudera.com>

Closes #4189 from srowen/SPARK-4430 and squashes the following commits:

9ea63ff [Sean Owen] Properly acquire a temp directory to ensure it is cleaned up at shutdown, which helps avoid a RAT check failure
parent fc2168f0
No related branches found
No related tags found
No related merge requests found
......@@ -28,21 +28,16 @@ import java.io.File
*/
class FailureSuite extends TestSuiteBase with Logging {
var directory = "FailureSuite"
val directory = Utils.createTempDir().getAbsolutePath
val numBatches = 30
override def batchDuration = Milliseconds(1000)
override def useManualClock = false
override def beforeFunction() {
super.beforeFunction()
Utils.deleteRecursively(new File(directory))
}
override def afterFunction() {
super.afterFunction()
Utils.deleteRecursively(new File(directory))
super.afterFunction()
}
test("multiple failures with map") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment