Skip to content

Commit 14630aa

Browse files
committed
Minor updates.
1 parent d9a452c commit 14630aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

external/kafka/src/main/scala/org/apache/spark/streaming/kafka/ReliableKafkaReceiver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class ReliableKafkaReceiver[
227227

228228
ZkUtils.updatePersistentPath(zkClient, zkPath, offset.toString)
229229
} catch {
230-
case t: Throwable => logWarning(s"Exception during commit offset $offset for topic" +
230+
case e: Exception => logWarning(s"Exception during commit offset $offset for topic" +
231231
s"${topicAndPart.topic}, partition ${topicAndPart.partition}", t)
232232
}
233233

streaming/src/main/scala/org/apache/spark/streaming/receiver/BlockGenerator.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ private[streaming] class BlockGenerator(
140140
} catch {
141141
case ie: InterruptedException =>
142142
logInfo("Block updating timer thread was interrupted")
143-
case t: Throwable =>
144-
reportError("Error in block updating thread", t)
143+
case e: Exception =>
144+
reportError("Error in block updating thread", e)
145145
}
146146
}
147147

@@ -168,7 +168,7 @@ private[streaming] class BlockGenerator(
168168
case ie: InterruptedException =>
169169
logInfo("Block pushing thread was interrupted")
170170
case e: Exception =>
171-
reportError("Error in block updating thread", e)
171+
reportError("Error in block pushing thread", e)
172172
}
173173
}
174174

0 commit comments

Comments
 (0)