-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-45579][CORE] Catch errors for FallbackStorage.copy #43409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
5a6d1f8
9887cd3
2ab7aa8
218f4be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -17,7 +17,7 @@ | |||||||
|
||||||||
package org.apache.spark.storage | ||||||||
|
||||||||
import java.io.IOException | ||||||||
import java.io.{FileNotFoundException, IOException} | ||||||||
import java.util.concurrent.atomic.AtomicInteger | ||||||||
|
||||||||
import scala.collection.mutable | ||||||||
|
@@ -40,7 +40,7 @@ private[storage] class BlockManagerDecommissioner( | |||||||
conf: SparkConf, | ||||||||
bm: BlockManager) extends Logging { | ||||||||
|
||||||||
private val fallbackStorage = FallbackStorage.getFallbackStorage(conf) | ||||||||
private[storage] val fallbackStorage = FallbackStorage.getFallbackStorage(conf) | ||||||||
private val maxReplicationFailuresForDecommission = | ||||||||
conf.get(config.STORAGE_DECOMMISSION_MAX_REPLICATION_FAILURE_PER_BLOCK) | ||||||||
private val blockSavedOnDecommissionedBlockManagerException = | ||||||||
|
@@ -145,7 +145,15 @@ private[storage] class BlockManagerDecommissioner( | |||||||
// Confirm peer is not the fallback BM ID because fallbackStorage would already | ||||||||
// have been used in the try-block above so there's no point trying again | ||||||||
&& peer != FallbackStorage.FALLBACK_BLOCK_MANAGER_ID) { | ||||||||
fallbackStorage.foreach(_.copy(shuffleBlockInfo, bm)) | ||||||||
try { | ||||||||
fallbackStorage.foreach(_.copy(shuffleBlockInfo, bm)) | ||||||||
} catch { | ||||||||
case e: FileNotFoundException => | ||||||||
logWarning("Skipping block $shuffleBlockInfo, block deleted.", e) | ||||||||
case NonFatal(e) => | ||||||||
logError(s"Fallback storage for $shuffleBlockInfo failed", e) | ||||||||
keepRunning = false | ||||||||
} | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drop this ? The existing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is different from the existing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was not clear from the PR description that this behavior change was being made. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There isn't a behavior change. If we remove the added There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this true?
We have line 166, doesn't it? spark/core/src/main/scala/org/apache/spark/storage/BlockManagerDecommissioner.scala Lines 166 to 168 in 2ab7aa8
Do you think you can provide a test case as the evidence for your claim, @ukby1234 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well this exception is thrown in this catch block, so this line 166 won't get executed. |
||||||||
} else if (e.getCause != null && e.getCause.getMessage != null | ||||||||
&& e.getCause.getMessage | ||||||||
.contains(blockSavedOnDecommissionedBlockManagerException)) { | ||||||||
|
@@ -203,7 +211,7 @@ private[storage] class BlockManagerDecommissioner( | |||||||
@volatile private var stopped = false | ||||||||
@volatile private[storage] var stoppedRDD = | ||||||||
!conf.get(config.STORAGE_DECOMMISSION_RDD_BLOCKS_ENABLED) | ||||||||
@volatile private var stoppedShuffle = | ||||||||
@volatile private[storage] var stoppedShuffle = | ||||||||
mridulm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
!conf.get(config.STORAGE_DECOMMISSION_SHUFFLE_BLOCKS_ENABLED) | ||||||||
|
||||||||
private val migrationPeers = | ||||||||
|
Uh oh!
There was an error while loading. Please reload this page.