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

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


The following commit(s) were added to refs/heads/main by this push:
     new 704fae0e2 [CELEBORN-1196] Slots allocator will increment disk index 
repeatedly
704fae0e2 is described below

commit 704fae0e2de17c3a5e746e222bc39331e2998994
Author: jiaoqingbo <[email protected]>
AuthorDate: Fri Dec 22 14:13:17 2023 +0800

    [CELEBORN-1196] Slots allocator will increment disk index repeatedly
    
    ### What changes were proposed in this pull request?
    
    Fix a bug about incorrect diskIndex calculation
    
    ### Why are the changes needed?
    
    ### Does this PR introduce _any_ user-facing change?
    
    NO
    
    ### How was this patch tested?
    
    PASS GA
    
    Closes #2181 from jiaoqingbo/diskIndex.
    
    Authored-by: jiaoqingbo <[email protected]>
    Signed-off-by: mingji <[email protected]>
---
 .../java/org/apache/celeborn/service/deploy/master/SlotsAllocator.java   | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/master/src/main/java/org/apache/celeborn/service/deploy/master/SlotsAllocator.java
 
b/master/src/main/java/org/apache/celeborn/service/deploy/master/SlotsAllocator.java
index b59ade4f8..ced728b2f 100644
--- 
a/master/src/main/java/org/apache/celeborn/service/deploy/master/SlotsAllocator.java
+++ 
b/master/src/main/java/org/apache/celeborn/service/deploy/master/SlotsAllocator.java
@@ -218,7 +218,6 @@ public class SlotsAllocator {
                 diskInfos[diskIndex].mountPoint(),
                 diskInfos[diskIndex].storageType(),
                 availableStorageTypes);
-        diskIndex = (diskIndex + 1) % diskInfos.length;
         workerDiskIndex.put(selectedWorker, (diskIndex + 1) % 
diskInfos.length);
       } else {
         storageInfo = new StorageInfo("", StorageInfo.Type.HDFS, 
availableStorageTypes);

Reply via email to