Skip to content

Commit 4b078bf

Browse files
committed
differentiate between leader and consumer offsets in error message
1 parent 3c2a96a commit 4b078bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

external/kafka/src/main/scala/org/apache/spark/rdd/kafka/KafkaCluster.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class KafkaCluster(val kafkaParams: Map[String, String]) {
143143
}
144144
}
145145
val missing = topicAndPartitions.diff(result.keys.toSet)
146-
errs.append(new Exception(s"Couldn't find offsets for ${missing}"))
146+
errs.append(new Exception(s"Couldn't find leader offsets for ${missing}"))
147147
Left(errs)
148148
}
149149

@@ -183,7 +183,7 @@ class KafkaCluster(val kafkaParams: Map[String, String]) {
183183
}
184184
}
185185
val missing = topicAndPartitions.diff(result.keys.toSet)
186-
errs.append(new Exception(s"Couldn't find offsets for ${missing}"))
186+
errs.append(new Exception(s"Couldn't find consumer offsets for ${missing}"))
187187
Left(errs)
188188
}
189189

0 commit comments

Comments
 (0)