Github user srowen commented on the issue:
https://github.com/apache/spark/pull/14372
Hm, backing up a bit, wouldn't it be safer and more straightforward to just
...
```
directKafkaStream.foreachRDD { rdd =>
offsetRanges = rdd.asInstanceOf[HasOffsetRanges].offsetRanges
...
rdd.map(...)
...
for (o <- offsetRanges) {
...
}
}
```
Storing the reference the way this does now doesn't seem guaranteed to work
at a higher level than just the issues that `volatile` might resolve.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]