marmot-z commented on code in PR #2475:
URL: 
https://github.com/apache/shardingsphere-elasticjob/pull/2475#discussion_r2328995252


##########
test/native/src/test/java/org/apache/shardingsphere/elasticjob/test/natived/it/operation/JavaTest.java:
##########
@@ -305,4 +308,47 @@ void testShardingStatisticsAPI() {
         });
         job.shutdown();
     }
+
+    @Test
+    void 
testGivenOneShardingCountWhenShutdownThenTaskCanCaptureInterruptedException() 
throws Exception {
+        testCaptureInterruptedException(1);
+    }
+
+    @Test
+    void 
testGivenOneMoreShardingCountWhenShutdownThenTaskCanCaptureInterruptedException()
 throws Exception {
+        testCaptureInterruptedException(2);
+    }

Review Comment:
   Because I found that the logic of using one shardingTotalCount and multiple 
shardingTotalCounts is different. When there is only one shardingTotalCount, 
the task always runs on the Quartz thread. When there are multiple 
shardingTotalCounts, the task runs on the ElasticJobExecutor thread. So I write 
two verify cases. 
   <img width="1298" height="557" alt="image" 
src="https://github.com/user-attachments/assets/2e2f10ca-a1a6-4049-9736-d8d7369cbef5";
 />
   



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