aokolnychyi commented on code in PR #6055:
URL: https://github.com/apache/iceberg/pull/6055#discussion_r1004901728


##########
spark/v3.3/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestDelete.java:
##########
@@ -764,12 +765,18 @@ public synchronized void 
testDeleteWithSerializableIsolation() throws Interrupte
     Future<?> appendFuture =
         executorService.submit(
             () -> {
+              SparkSession sparkSession = spark.cloneSession();
               for (int numOperations = 0; numOperations < Integer.MAX_VALUE; 
numOperations++) {
                 while (barrier.get() < numOperations * 2) {
                   sleep(10);
                 }
 
                 try {
+                  Dataset<Row> inputDF =

Review Comment:
   I was running into some weird thread-local issues without cloning the 
session in the thread.



-- 
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]

Reply via email to