Skip to content
Snippets Groups Projects
Commit ec30c178 authored by zzcclp's avatar zzcclp Committed by Sean Owen
Browse files

[SPARK-6279][Streaming]In KafkaRDD.scala, Miss expressions flag "s" at logging string

In KafkaRDD.scala, Miss expressions flag "s" at logging string
In logging file, it print `Beginning offset $
{part.fromOffset}
is the same as ending offset ` but not `Beginning offset 111 is the same as ending offset `.

Author: zzcclp <xm_zzc@sina.com>

Closes #4979 from zzcclp/SPARK-6279 and squashes the following commits:

768f88e [zzcclp] Miss expressions flag "s"
parent 40f49795
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ class KafkaRDD[
val part = thePart.asInstanceOf[KafkaRDDPartition]
assert(part.fromOffset <= part.untilOffset, errBeginAfterEnd(part))
if (part.fromOffset == part.untilOffset) {
log.warn("Beginning offset ${part.fromOffset} is the same as ending offset " +
log.warn(s"Beginning offset ${part.fromOffset} is the same as ending offset " +
s"skipping ${part.topic} ${part.partition}")
Iterator.empty
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment