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

Reply via email to