You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@celeborn.apache.org by Sanskar Modi <sa...@gmail.com> on 2024/04/03 10:34:49 UTC
How does Celeborn handles FetchFailed exception
Hi Celebron community,
I wanted to understand better on how Celeborn handles FetchFailed
exceptions. In Spark `DAGScheduler` fetch failure handling, code tries to
unregister the map output for the fetch failed mapIndex
} else if (mapIndex != -1) {
// Mark the map whose fetch failed as broken in the map stage
mapOutputTracker.unregisterMapOutput(shuffleId, mapIndex, bmAddress)
}
But in the Celeborn case mapIndex will always be -1. So how does the
shuffle output get cleared for the same.
Ideally mapOutputTracker.unregisterAllMapAndMergeOutput(shuffleId) should
be called for the fetch failed stage but I'm not able to find that code
piece.
Can someone help me understand this, I might be missing something basic
here.
Re: How does Celeborn handles FetchFailed exception
Posted by Keyong Zhou <zh...@apache.org>.
Hi Sanskar,
Thanks for your interest in Celeborn! Here is design doc[1] and and this
thread[2] has extensive discussion,
which I believe can be helpful.
For your question, LifecycleManager registers shuffle tracker callback
after creation, which calls unregisterAllMapAndMergeOutput:
lifecycleManager.registerShuffleTrackerCallback(
shuffleId -> SparkUtils.unregisterAllMapOutput(mapOutputTracker,
shuffleId));
The callback will be called when LifecycleManager handles shuffle fetch
failure:
private def handleReportShuffleFetchFailure(
context: RpcCallContext,
appShuffleId: Int,
shuffleId: Int): Unit = {
...
appShuffleTrackerCallback match {
case Some(callback) =>
try {
callback.accept(appShuffleId)
...
}
And ShuffleClient inside Executors reports shuffle fetch failure whenever
fetch failure is encountered:
public boolean reportShuffleFetchFailure(int appShuffleId, int shuffleId)
{
...
PbReportShuffleFetchFailureResponse pbReportShuffleFetchFailureResponse
=
lifecycleManagerRef.askSync(
pbReportShuffleFetchFailure,
conf.clientRpcRegisterShuffleRpcAskTimeout(),
ClassTag$.MODULE$.apply(PbReportShuffleFetchFailureResponse.class));
...
}
cc Erik, Mridul
[1]
https://docs.google.com/document/d/1dkG6fww3g99VAb1wkphNlUES_MpngVPNg8601chmVp8
[2] https://lists.apache.org/thread/nogsgc61qh2zomdvhfbs4b0y88s3qtqg
Regards,
Keyong Zhou
Sanskar Modi <sa...@gmail.com> 于2024年4月3日周三 18:35写道:
> Hi Celebron community,
>
> I wanted to understand better on how Celeborn handles FetchFailed
> exceptions. In Spark `DAGScheduler` fetch failure handling, code tries to
> unregister the map output for the fetch failed mapIndex
>
> } else if (mapIndex != -1) {
> // Mark the map whose fetch failed as broken in the map stage
> mapOutputTracker.unregisterMapOutput(shuffleId, mapIndex, bmAddress)
>
> }
>
> But in the Celeborn case mapIndex will always be -1. So how does the
> shuffle output get cleared for the same.
> Ideally mapOutputTracker.unregisterAllMapAndMergeOutput(shuffleId) should
> be called for the fetch failed stage but I'm not able to find that code
> piece.
>
> Can someone help me understand this, I might be missing something basic
> here.
>