Skip to content

Commit

Permalink
changes required in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swasti committed Jan 10, 2018
1 parent a6910a0 commit 13c1943
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ object ExecutorStorageSpillHeuristicTest {
maxMemory= 0,
totalGCTime = 0,
totalMemoryBytesSpilled,
executorLogs = Map.empty
executorLogs = Map.empty,
peakJvmUsedMemory = Map.empty,
peakUnifiedMemory = Map.empty
)

def newFakeSparkApplicationData(
Expand All @@ -124,7 +126,8 @@ object ExecutorStorageSpillHeuristicTest {
new ApplicationInfoImpl(appId, name = "app", Seq.empty),
jobDatas = Seq.empty,
stageDatas = Seq.empty,
executorSummaries = executorSummaries
executorSummaries = executorSummaries,
stagesWithFailedTasks = Seq.empty
)

val logDerivedData = SparkLogDerivedData(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ object JvmUsedMemoryHeuristicTest {
totalShuffleWrite = 0,
maxMemory = 0,
totalGCTime = 0,
totalMemoryBytesSpilled = 0,
executorLogs = Map.empty,
peakJvmUsedMemory
peakJvmUsedMemory,
peakUnifiedMemory = Map.empty
)

def newFakeSparkApplicationData(
Expand All @@ -104,7 +106,8 @@ object JvmUsedMemoryHeuristicTest {
new ApplicationInfoImpl(appId, name = "app", Seq.empty),
jobDatas = Seq.empty,
stageDatas = Seq.empty,
executorSummaries = executorSummaries
executorSummaries = executorSummaries,
stagesWithFailedTasks = Seq.empty
)

SparkApplicationData(appId, restDerivedData, Some(logDerivedData))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ object UnifiedMemoryHeuristicTest {
totalShuffleWrite = 0,
maxMemory,
totalGCTime = 0,
totalMemoryBytesSpilled = 0,
executorLogs = Map.empty,
peakJvmUsedMemory = Map.empty,
peakUnifiedMemory
)

Expand All @@ -72,7 +74,8 @@ object UnifiedMemoryHeuristicTest {
new ApplicationInfoImpl(appId, name = "app", Seq.empty),
jobDatas = Seq.empty,
stageDatas = Seq.empty,
executorSummaries = executorSummaries
executorSummaries = executorSummaries,
stagesWithFailedTasks = Seq.empty
)

SparkApplicationData(appId, restDerivedData, logDerivedData = None)
Expand Down

0 comments on commit 13c1943

Please sign in to comment.