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

nicholasjiang 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 0f663d058 [CELEBORN-1577][FOLLOWUP] Fix addGauge error in 
registerUserResourceCons…
0f663d058 is described below

commit 0f663d0585e61b5079cb728f3631ebef317081e5
Author: xxx <[email protected]>
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 <[email protected]>
    Signed-off-by: SteNicholas <[email protected]>
---
 .../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 0d8d7b168..c6cb70d11 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
@@ -373,7 +373,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

Reply via email to