nastra commented on code in PR #10037:
URL: https://github.com/apache/iceberg/pull/10037#discussion_r1559638434


##########
spark/v3.5/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/ProcedureUtil.java:
##########
@@ -51,4 +56,29 @@ static String statsFileLocation(String tableLocation) {
     String statsFileName = "stats-file-" + UUID.randomUUID();
     return tableLocation.replaceFirst("file:", "") + "/metadata/" + 
statsFileName;
   }
+
+  static class TestExecutorService extends ThreadPoolExecutor {
+
+    private int executedTasks = 0;
+
+    TestExecutorService() {
+      super(
+          1,
+          1,
+          0L,
+          TimeUnit.MILLISECONDS,
+          new LinkedBlockingQueue<>(),
+          new ThreadFactoryBuilder().build());
+    }
+
+    @Override
+    public void execute(@NotNull Runnable task) {
+      super.execute(task);
+      executedTasks++;
+    }
+
+    public int getExecutedTasks() {

Review Comment:
   ```suggestion
       public int executedTasks() {
   ```



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