zhengchenyu commented on code in PR #1131:
URL: 
https://github.com/apache/incubator-uniffle/pull/1131#discussion_r1290940489


##########
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/v2/app/RssMRAppMaster.java:
##########
@@ -111,20 +113,32 @@ public RssMRAppMaster(
     rssNmHttpPort = nmHttpPort;
     rssContainerID = containerId;
     rssContainerAllocator = null;
+    shuffleWriteClient = client;
   }
 
   private static final Logger LOG = 
LoggerFactory.getLogger(RssMRAppMaster.class);
 
+  @Override
+  protected void serviceStop() throws Exception {

Review Comment:
   Yes! In general, this will be invoked explicitly.
   Below is the steps:
   (1) 
KillNewJobTransition/CommitSucceededTransition/InternalTerminationTransition => 
job.finished 
   (2) In job.finished, send JobFinishEvent
   (3) JobFinishEventHandler handle the JobFinishEvent and called shutDownJob
   (4) shutDownJob => MRAppMaster.this.stop() => serviceStop
   
   Below is related logs:
   
   ```
   2023-08-11 14:19:40,033 INFO [Thread-132] 
org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Calling stop for all the 
services
   2023-08-11 14:19:40,033 INFO [Thread-132] 
org.apache.hadoop.mapreduce.v2.app.RssMRAppMaster: Unregister shuffle for app 
appattempt_1691730663832_0001_000001
   2023-08-11 14:19:40,046 INFO [RMCommunicator Allocator] 
org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: Received completed 
container container_e3969_1691730663832_0001_01_000035
   ```



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