Skip to content

Commit

Permalink
[SPARK-6279][Streaming]In KafkaRDD.scala, Miss expressions flag "s" a…
Browse files Browse the repository at this point in the history
…t 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 apache#4979 from zzcclp/SPARK-6279 and squashes the following commits:

768f88e [zzcclp] Miss expressions flag "s"
  • Loading branch information
zzcclp authored and srowen committed Mar 11, 2015
1 parent 40f4979 commit ec30c17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ec30c17

Please sign in to comment.