Skip to content

Commit

Permalink
[MINOR][CORE] Show block manager id when remove RDD/Broadcast fails.
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

Address #20924 (comment), show block manager id when remove RDD/Broadcast fails.

## How was this patch tested?

N/A

Author: Xingbo Jiang <[email protected]>

Closes #20960 from jiangxb1987/bmid.
  • Loading branch information
jiangxb1987 authored and HyukjinKwon committed Apr 3, 2018
1 parent 8020f66 commit 7cf9fab
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ class BlockManagerMasterEndpoint(
val futures = blockManagerInfo.values.map { bm =>
bm.slaveEndpoint.ask[Int](removeMsg).recover {
case e: IOException =>
logWarning(s"Error trying to remove RDD $rddId", e)
logWarning(s"Error trying to remove RDD $rddId from block manager ${bm.blockManagerId}",
e)
0 // zero blocks were removed
}
}.toSeq
Expand Down Expand Up @@ -195,7 +196,8 @@ class BlockManagerMasterEndpoint(
val futures = requiredBlockManagers.map { bm =>
bm.slaveEndpoint.ask[Int](removeMsg).recover {
case e: IOException =>
logWarning(s"Error trying to remove broadcast $broadcastId", e)
logWarning(s"Error trying to remove broadcast $broadcastId from block manager " +
s"${bm.blockManagerId}", e)
0 // zero blocks were removed
}
}.toSeq
Expand Down

0 comments on commit 7cf9fab

Please sign in to comment.