Commit 9628c1e
authored
[KafkaIO] Improve caching in backlog estimation and processing (#34331)
* Improve caching in backlog estimation and processing
* Add comment to explain the behavior of volatile guard field in KafkaLatestOffsetEstimator
* Guard against exceptions in endOffset refresh
* Call cancelIfTimeouted in roundtripElements to shutdown lingering pipelines
* Add missing calls to seek and/or pause before return points added in #342021 parent 363bcc0 commit 9628c1e
File tree
4 files changed
+422
-322
lines changed- sdks/java/io/kafka/src
- main/java/org/apache/beam/sdk/io/kafka
- test/java/org/apache/beam/sdk/io/kafka
4 files changed
+422
-322
lines changedLines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
133 | 148 | | |
134 | 149 | | |
135 | 150 | | |
| |||
0 commit comments