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 15, 2023
1 parent 8463107 commit 59dd071
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 59dd071

Please sign in to comment.