maobaolong opened a new pull request, #2132:
URL: https://github.com/apache/incubator-uniffle/pull/2132

   <!--
   1. Title: [#<issue>] <type>(<scope>): <subject>
      Examples:
        - "[#123] feat(operator): support xxx"
        - "[#233] fix: check null before access result in xxx"
        - "[MINOR] refactor: fix typo in variable name"
        - "[MINOR] docs: fix typo in README"
        - "[#255] test: fix flaky test NameOfTheTest"
      Reference: https://www.conventionalcommits.org/en/v1.0.0/
   2. Contributor guidelines:
      https://github.com/apache/incubator-uniffle/blob/master/CONTRIBUTING.md
   3. If the PR is unfinished, please mark this PR as draft.
   -->
   
   ### What changes were proposed in this pull request?
   
   Server send heartbeat to coordinator while receive unregister shuffle 
request.
   
   ### Why are the changes needed?
   
   Without this PR, server could not heartbeat the updated app info after 
unregister this app, so the coordinator and dashboard could display the outdate 
information.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Tested by a tiny spark job executed by spark-shell
   
   - shell command line
   
   ```shell
   bin/spark-shell  --master  spark://localhost:7077  --deploy-mode client 
--conf spark.rss.coordinator.quorum=localhost:19999   --conf 
spark.shuffle.manager=org.apache.spark.shuffle.RssShuffleManager  --conf 
spark.rss.storage.type=LOCALFILE --conf 
spark.serializer=org.apache.spark.serializer.KryoSerializer --conf 
spark.rss.test.mode.enable=true --conf spark.rss.client.type=GRPC_NETTY --conf 
spark.default.parallelism=16  -i test.scala
   ```
   
   - test.scala
   ```scala
   val data = sc.parallelize(Seq(("A", 1), ("B", 2), ("C", 3), ("A", 4), ("B", 
5), ("A", 6), ("A", 7),("A", 7), ("A", 7), ("A", 7), ("A", 7), ("A", 7), ("A", 
7), ("A", 7), ("A", 7), ("A", 7), ("A", 7), ("A", 7), ("A", 7)));
   val result = data.reduceByKey(_ + _);
   result.collect().foreach(println);
   System.exit(0);
   ```
   
   <img width="2540" alt="image" 
src="https://github.com/user-attachments/assets/bbd7c534-9fea-4e86-ba5e-84dff3d9c98c";>
   
   


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