This is an automated email from the ASF dual-hosted git repository.

zaynt4606 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn.git


The following commit(s) were added to refs/heads/main by this push:
     new 915347ece4 [MINOR] Remove leading newline from WorkerStatusTracker 
error log
915347ece4 is described below

commit 915347ece48edc0446c96a2f48bc30a03355a8ac
Author: yew1eb <[email protected]>
AuthorDate: Fri Nov 20 10:36:47 2026 +0800

    [MINOR] Remove leading newline from WorkerStatusTracker error log
    
    ### What changes were proposed in this pull request?
    
    Remove the leading newline from the 
`WorkerStatusTracker.recordWorkerFailure` error message so that `Reporting 
failed workers:` appears on the same line as the ERROR log prefix. Worker 
details remain on separate lines for readability.
    
    ### Why are the changes needed?
    
    The previous triple-quoted string started with a newline, which produced an 
empty first line after the ERROR prefix in SBT and Maven test logs. This change 
improves log readability without changing worker status handling.
    
    ### Does this PR resolve a correctness bug?
    
    - [ ] Yes
    
    ### Does this PR introduce _any_ user-facing change?
    
    - [ ] Yes
    
    ### How was this patch tested?
    
    - Ran `./build/sbt "celeborn-client/testOnly 
org.apache.celeborn.client.WorkerStatusTrackerSuite"`: all 4 tests passed.
    - Verified from the test output that `Reporting failed workers:` now 
appears on the ERROR line without an empty first line.
    - Ran `git diff --check` successfully.
    
    Closes #3920 from yew1eb/CELEBORN-2523-worker-status-log.
    
    Authored-by: yew1eb <[email protected]>
    Signed-off-by: zhengtao <[email protected]>
    
    AI-Contributed/Feature: 0/5
    AI-Contributed/UT: 0/0
---
 .../main/scala/org/apache/celeborn/client/WorkerStatusTracker.scala  | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/client/src/main/scala/org/apache/celeborn/client/WorkerStatusTracker.scala 
b/client/src/main/scala/org/apache/celeborn/client/WorkerStatusTracker.scala
index 67e56a08e1..cc6d3e5fb5 100644
--- a/client/src/main/scala/org/apache/celeborn/client/WorkerStatusTracker.scala
+++ b/client/src/main/scala/org/apache/celeborn/client/WorkerStatusTracker.scala
@@ -139,10 +139,7 @@ class WorkerStatusTracker(
       val failedWorkersMsg = failedWorkers.asScala.map { case (worker, 
(status, time)) =>
         s"${worker.readableAddress()}   ${status.name()}   
${Utils.formatTimestamp(time)}"
       }.mkString("\n")
-      logError(
-        s"""
-           |Reporting failed workers:
-           |$failedWorkersMsg$currentFailedWorkers""".stripMargin)
+      logError(s"Reporting failed 
workers:\n$failedWorkersMsg$currentFailedWorkers")
       failedWorkers.asScala.foreach {
         case (worker, (StatusCode.WORKER_SHUTDOWN, _)) =>
           shuttingWorkers.add(worker)

Reply via email to