Hisoka-X commented on code in PR #9696:
URL: https://github.com/apache/seatunnel/pull/9696#discussion_r2271960297


##########
seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/JobClientJobProxyIT.java:
##########
@@ -183,4 +183,22 @@ public void testJobFailedWillThrowException() throws 
IOException, InterruptedExc
                                 .contains(
                                         
"org.apache.seatunnel.engine.server.resourcemanager.NoEnoughResourceException"));
     }
+
+    @Test
+    public void testCleanupPendingJobMasterMapAfterJobFailed()
+            throws IOException, InterruptedException {
+        Container.ExecResult execResult = executeJob(server, 
"/batch_slot_not_enough.conf");
+        Assertions.assertNotEquals(0, execResult.getExitCode());
+        String serverLogs = server.getLogs();
+        Assertions.assertTrue(serverLogs.contains("PendingJobMasterMap size 
after cleanup: 0"));
+    }
+
+    @Test
+    public void testCleanupCheckPointCoordinatorStatus() throws IOException, 
InterruptedException {
+        Container.ExecResult execResult = executeJob(server, 
"/batch_slot_enough.conf");
+        Assertions.assertEquals(0, execResult.getExitCode());
+        String serverLogs = server.getLogs();
+        Assertions.assertTrue(
+                serverLogs.contains("Successfully removed checkpoint 
coordinator state:"));
+    }

Review Comment:
   how about add a data and key into queue by ourself? we should make sure 
`metrics-cleanup-worker` thread work fine.



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

Reply via email to