Commit f6b8793
[SPARK-17841][STREAMING][KAFKA] drain commitQueue
## What changes were proposed in this pull request?
Actually drain commit queue rather than just iterating it.
iterator() on a concurrent linked queue won't remove items from the queue, poll() will.
## How was this patch tested?
Unit tests
Author: cody koeninger <[email protected]>
Closes #15407 from koeninger/SPARK-17841.
(cherry picked from commit cd106b0)
Signed-off-by: Reynold Xin <[email protected]>1 parent 6ef9231 commit f6b8793
File tree
1 file changed
+3
-3
lines changed- external/kafka-0-10/src/main/scala/org/apache/spark/streaming/kafka010
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
| 285 | + | |
| 286 | + | |
288 | 287 | | |
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
0 commit comments