You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/10/14 02:54:24 UTC

[GitHub] [incubator-seatunnel] EricJoy2048 commented on a diff in pull request #3082: [Hotfix][ST-Engine] Add master node switch test and fix bug

EricJoy2048 commented on code in PR #3082:
URL: https://github.com/apache/incubator-seatunnel/pull/3082#discussion_r995291598


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/CoordinatorService.java:
##########
@@ -146,8 +155,11 @@ private void initCoordinatorService() {
         ownedSlotProfilesIMap = nodeEngine.getHazelcastInstance().getMap(Constant.IMAP_OWNED_SLOT_PROFILES);
 
         List<CompletableFuture<Void>> collect = runningJobInfoIMap.entrySet().stream().map(entry -> {
-            return CompletableFuture.runAsync(() -> restoreJobFromMasterActiveSwitch(entry.getKey(), entry.getValue()),
-                executorService);
+            return CompletableFuture.runAsync(() -> {
+                logger.info(String.format("begin restore job (%s) from master active switch", entry.getKey()));

Review Comment:
   > Use `{}` instead of String.format
   > 
   > https://stackoverflow.com/questions/41532840/log4j2-using-against-using-d-or-s
   
   We use the Hazelcast Logger API, it not support use `{}`
   
   <img width="611" alt="image" src="https://user-images.githubusercontent.com/32193458/195751481-c0ac80c8-27e2-41dd-aa8a-0dea350a41f6.png">
   



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org