Skip to content

Commit

Permalink
Fix bug that cause stage data loss due to internal closures and unrea…
Browse files Browse the repository at this point in the history
…sonable cache settings during retry
  • Loading branch information
jinmfeng001 committed Aug 16, 2023
1 parent f380c10 commit 57f812e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ object PreXGBoost extends PreXGBoostProvider {
xgbExecutionParam.allowNonZeroForMissing),
getCacheDirName(xgbExecutionParam.useExternalMemory))
Iterator.single(buildWatches)
}).cache()
})
} else {
coPartitionGroupSets(trainingData, evalSetsMap, xgbExecutionParam.numWorkers).mapPartitions(
labeledPointGroupSets => {
Expand All @@ -390,7 +390,7 @@ object PreXGBoost extends PreXGBoostProvider {
},
getCacheDirName(xgbExecutionParam.useExternalMemory))
Iterator.single(buildWatches)
}).cache()
})
}
}

Expand Down Expand Up @@ -467,7 +467,7 @@ object PreXGBoost extends PreXGBoostProvider {
xgbExecutionParams.allowNonZeroForMissing),
getCacheDirName(xgbExecutionParams.useExternalMemory))
Iterator.single(buildWatches)
}}.cache()
}}
} else {
coPartitionNoGroupSets(trainingData, evalSetsMap, xgbExecutionParams.numWorkers).
mapPartitions {
Expand All @@ -479,7 +479,7 @@ object PreXGBoost extends PreXGBoostProvider {
},
getCacheDirName(xgbExecutionParams.useExternalMemory))
Iterator.single(buildWatches)
}.cache()
}
}
}

Expand Down

0 comments on commit 57f812e

Please sign in to comment.