mblesak commented on issue #13593:
URL: https://github.com/apache/iceberg/issues/13593#issuecomment-3116682155
@kumarpritam863 - you are correct, my mistake, I have posted wrong exception
- this one is correct and it has been raised after modification of close()
method to the listing:
```
@Override
public void close(Collection<TopicPartition> closedPartitions) {
stopCoordinator();
stopWorker();
KafkaUtils.seekToLastCommittedOffsets(context);
}
```
Exception pointing to line: KafkaUtils.seekToLastCommittedOffsets(context);
```
java.lang.NullPointerException: Cannot invoke "Object.getClass()" because
"context" is null
at
org.apache.iceberg.connect.channel.KafkaUtils.kafkaConsumer(KafkaUtils.java:89)
at
org.apache.iceberg.connect.channel.KafkaUtils.seekToLastCommittedOffsets(KafkaUtils.java:61)
at
org.apache.iceberg.connect.channel.CommitterImpl.close(CommitterImpl.java:141)
at org.apache.iceberg.connect.IcebergSinkTask.close(IcebergSinkTask.java:64)
at org.apache.iceberg.connect.IcebergSinkTask.stop(IcebergSinkTask.java:103)
at
org.apache.kafka.connect.runtime.WorkerSinkTask.close(WorkerSinkTask.java:178)
at org.apache.kafka.connect.runtime.WorkerTask.doClose(WorkerTask.java:183)
at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:216)
at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:259)
at
org.apache.kafka.connect.runtime.isolation.Plugins.lambda$withClassLoader$1(Plugins.java:237)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
```
Then we have realized that IcebergSinkTask.close() handles also partition: 0
reassignment and we have reverted code back.
Our next tests were focused on IcebergSinkTask.stop().
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]