Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
00bcf8a
Avoid IO operations on empty files in BlockObjectWriter.
JoshRosen Apr 21, 2015
8fd89b4
Do not create empty files at all.
JoshRosen Apr 21, 2015
0db87c3
Reduce scope of FileOutputStream in ExternalSorter
JoshRosen Apr 21, 2015
7e2340d
Revert "Reduce scope of FileOutputStream in ExternalSorter"
JoshRosen Apr 22, 2015
8113eac
Hacky WIP towards speculatively running w/o reset(), then retrying wi…
JoshRosen Jun 5, 2015
417f50e
Hackily comment out most of dev/run-tests to speed up Jenkins iteration.
JoshRosen Jun 5, 2015
f90dc94
Don't pass configuration to ObjectWritable in SerializableWritable
JoshRosen Jun 5, 2015
480d20a
Broadcast configuration in hiveWriterContainers (WIP hack)
JoshRosen Jun 5, 2015
55041d2
Use local[*] instead of local[2]
JoshRosen Jun 5, 2015
57c2cb4
try in-memory Derby
JoshRosen Jun 5, 2015
9db0abc
Avoid writing empty files in BypassMergeSortShuffleWriter
JoshRosen Jun 5, 2015
9e116d1
Rework SPARK-7041 for BypassMergeSort split
JoshRosen Jun 5, 2015
3fe16e8
Revert "Broadcast configuration in hiveWriterContainers (WIP hack)"
JoshRosen Jun 5, 2015
54cd5ce
Merge remote-tracking branch 'origin/master' into file-handle-optimiz…
JoshRosen Jun 5, 2015
5c777cf
Rework SPARK-7041 for BypassMergeSort split
JoshRosen Jun 5, 2015
5ac11d1
Revert "Use local[*] instead of local[2]"
JoshRosen Jun 5, 2015
895de59
Revert "try in-memory Derby"
JoshRosen Jun 5, 2015
bf30fee
Revert "Don't pass configuration to ObjectWritable in SerializableWri…
JoshRosen Jun 5, 2015
b1e3f82
Revert "Hacky WIP towards speculatively running w/o reset(), then ret…
JoshRosen Jun 5, 2015
5113370
Revert "Rework SPARK-7041 for BypassMergeSort split"
JoshRosen Jun 5, 2015
fac08d5
SPARK-8135. In SerializableWritable, don't load defaults when instant…
sryza Jun 5, 2015
c7caa5c
Merge remote-tracking branch 'origin/master' into file-handle-optimiz…
JoshRosen Jun 6, 2015
8c1e1ff
Merge branch 'file-handle-optimizations' into hive-compat-suite-speedup
JoshRosen Jun 8, 2015
2b500b9
Only run unsafe tests (testing a jenkins job)
JoshRosen Jun 12, 2015
fbd3d03
Add log4j test properties to unsafe project.
JoshRosen Jun 12, 2015
46dd005
Try only testing bagel instead (since I don't think Maven logs to uni…
JoshRosen Jun 12, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Hacky WIP towards speculatively running w/o reset(), then retrying wi…
…th it.
  • Loading branch information
JoshRosen committed Jun 5, 2015
commit 8113eac2ea7206cb24e6fe52252caaf70ff642a5
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ abstract class HiveComparisonTest
}

val installHooksCommand = "(?i)SET.*hooks".r
def createQueryTest(testCaseName: String, sql: String, reset: Boolean = true) {
def createQueryTest(
testCaseName: String,
sql: String,
reset: Boolean = true,
tryWithoutResettingFirst: Boolean = false) {
// testCaseName must not contain ':', which is not allowed to appear in a filename of Windows
assert(!testCaseName.contains(":"))

Expand Down Expand Up @@ -238,9 +242,6 @@ abstract class HiveComparisonTest
test(testCaseName) {
logDebug(s"=== HIVE TEST: $testCaseName ===")

// Clear old output for this testcase.
outputDirectories.map(new File(_, testCaseName)).filter(_.exists()).foreach(_.delete())

val sqlWithoutComment =
sql.split("\n").filterNot(l => l.matches("--.*(?<=[^\\\\]);")).mkString("\n")
val allQueries =
Expand All @@ -267,7 +268,10 @@ abstract class HiveComparisonTest
}.mkString("\n== Console version of this test ==\n", "\n", "\n")
}

try {
def doTest(reset: Boolean, isSpeculative: Boolean = false): Unit = {
// Clear old output for this testcase.
outputDirectories.map(new File(_, testCaseName)).filter(_.exists()).foreach(_.delete())

if (reset) {
TestHive.reset()
}
Expand Down Expand Up @@ -390,12 +394,36 @@ abstract class HiveComparisonTest
""".stripMargin

stringToFile(new File(wrongDirectory, testCaseName), errorMessage + consoleTestCase)
fail(errorMessage)
if (isSpeculative && !reset) {
// TODO: log this at a very low level that won't appear in the console appender
// then throw a custom exception
fail("Failed on first run; retrying")
} else {
fail(errorMessage)
}
}
}

// Touch passed file.
new FileOutputStream(new File(passedDirectory, testCaseName)).close()
}

try {
try {
if (tryWithoutResettingFirst) {
doTest(reset = false, isSpeculative = true)
} else {
doTest(reset)
}
} catch {
case tf: org.scalatest.exceptions.TestFailedException =>
if (tryWithoutResettingFirst) {
logWarning("Test failed without reset(); retrying with reset()")
doTest(reset = true)
} else {
throw tf
}
}
} catch {
case tf: org.scalatest.exceptions.TestFailedException => throw tf
case originalException: Exception =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ abstract class HiveQueryFileTest extends HiveComparisonTest {
runAll) {
// Build a test case and submit it to scala test framework...
val queriesString = fileToString(testCaseFile)
createQueryTest(testCaseName, queriesString)
createQueryTest(testCaseName, queriesString, reset = true, tryWithoutResettingFirst = true)
} else {
// Only output warnings for the built in whitelist as this clutters the output when the user
// trying to execute a single test from the commandline.
Expand Down