zzeekk opened a new issue, #11147: URL: https://github.com/apache/iceberg/issues/11147
### Apache Iceberg version 1.6.1 (latest release) ### Query engine Spark ### Please describe the bug 🐞 Problem: Executing "system.add_files(... parallelism => 2)" results in a NotSerializableException for an instance ExecutorService: Task not serializable: java.io.NotSerializableException: java.util.concurrent.Executors$Delegated**ExecutorService** in MapPartitionsRDD[16] at collectAsList at **SparkTableUtil.java:792**, org.apache.spark.ShuffleDependency@12d6880f Expectations: add_files runs without exception, also if parallelism > 1. Suggestions: Dont pass ExecutorService instance from the Spark driver as argument to listPartition in SparkTableUtils.java:759, but create ExecutorService in listPartitions on the Spark executor. ### Willingness to contribute - [ ] I can contribute a fix for this bug independently - [ ] I would be willing to contribute a fix for this bug with guidance from the Iceberg community - [ ] I cannot contribute a fix for this bug at this time -- 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.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