You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celeborn.apache.org by ni...@apache.org on 2025/12/11 05:25:17 UTC

(celeborn) branch branch-0.6 updated: [CELEBORN-1577][FOLLOWUP] Fix addGauge error in registerUserResourceCons…

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

nicholasjiang pushed a commit to branch branch-0.6
in repository https://gitbox.apache.org/repos/asf/celeborn.git


The following commit(s) were added to refs/heads/branch-0.6 by this push:
     new a899abf4b [CELEBORN-1577][FOLLOWUP] Fix addGauge error in registerUserResourceCons…
a899abf4b is described below

commit a899abf4bc08c0d0c8a427a8b01e7735d0aa4d87
Author: xxx <95...@qq.com>
AuthorDate: Thu Dec 11 13:24:15 2025 +0800

    [CELEBORN-1577][FOLLOWUP] Fix addGauge error in registerUserResourceCons…
    
    …umptionMetrics
    
    ### What changes were proposed in this pull request?
    
    Fix addGauge error in registerUserResourceConsumptionMetrics
    
    ### Why are the changes needed?
    
    Fix addGauge error in registerUserResourceConsumptionMetrics
    
    ### Does this PR resolve a correctness bug?
    
    NO
    
    ### Does this PR introduce _any_ user-facing change?
    
    NO
    
    ### How was this patch tested?
    
    CI
    
    Closes #3532 from xy2953396112/CELEBORN-1577.
    
    Authored-by: xxx <95...@qq.com>
    Signed-off-by: SteNicholas <pr...@163.com>
    (cherry picked from commit 0f663d0585e61b5079cb728f3631ebef317081e5)
    Signed-off-by: SteNicholas <pr...@163.com>
---
 .../org/apache/celeborn/service/deploy/master/quota/QuotaManager.scala  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/master/src/main/scala/org/apache/celeborn/service/deploy/master/quota/QuotaManager.scala b/master/src/main/scala/org/apache/celeborn/service/deploy/master/quota/QuotaManager.scala
index 8da25f0dd..796f53f0d 100644
--- a/master/src/main/scala/org/apache/celeborn/service/deploy/master/quota/QuotaManager.scala
+++ b/master/src/main/scala/org/apache/celeborn/service/deploy/master/quota/QuotaManager.scala
@@ -372,7 +372,7 @@ class QuotaManager(
       resourceConsumption: ResourceConsumption): Unit = {
     if (resourceConsumptionMetricsEnabled) {
       resourceConsumptionSource.addGauge(DISK_FILE_COUNT, userIdentifier.toMap) { () =>
-        resourceConsumption.diskBytesWritten
+        resourceConsumption.diskFileCount
       }
       resourceConsumptionSource.addGauge(DISK_BYTES_WRITTEN, userIdentifier.toMap) { () =>
         resourceConsumption.diskBytesWritten