kumarpritam863 commented on issue #13593: URL: https://github.com/apache/iceberg/issues/13593#issuecomment-3116704347
It seems that you have modified this method: > @Override public void close(Collection<TopicPartition> closedPartitions) { stopCoordinator(); stopWorker(); KafkaUtils.seekToLastCommittedOffsets(context); } Also " KafkaUtils.seekToLastCommittedOffsets(context);" this call happens form two places, on sink task close operation https://github.com/apache/iceberg/blob/f40208ae6fb2f33e578c2637d3dea1db18739f31/kafka-connect/kafka-connect/src/main/java/org/apache/iceberg/connect/IcebergSinkTask.java#L59 Now since this is close call and this happens only when the task is initialised and assigned some partition which is being revoked through this close call, so context cannot be null in that case. Other invocation happens from this point: https://github.com/apache/iceberg/blob/f40208ae6fb2f33e578c2637d3dea1db18739f31/kafka-connect/kafka-connect/src/main/java/org/apache/iceberg/connect/IcebergSinkTask.java#L64 Now in this case if context was null (which also cannot be if you see the workerSinktask implementation), it would have thrown NPE here itself without going any further. Can you point to you current code on GitHub to understand the issue. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org