celeborn/worker
SteNicholas 5a459250b0
[CELEBORN-1844][FOLLOWUP] Fix the condition of StoragePolicy that worker uses memory storage
### What changes were proposed in this pull request?

Fix the condition of `StoragePolicy` that worker uses memory storage

### Why are the changes needed?

The condition of `StoragePolicy` that worker uses memory storage is `order.contains(StorageInfo.Type.MEMORY.name())`, which condition is wrong because `Option#contains` is as follows:

```
final def contains[A1 >: A](elem: A1): Boolean = !isEmpty && this.get == elem
```

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

CI.

Closes #3408 from SteNicholas/CELEBORN-1844.

Authored-by: SteNicholas <programgeek@163.com>
Signed-off-by: mingji <fengmingxiao.fmx@alibaba-inc.com>
2025-08-06 10:36:07 +08:00
..
src [CELEBORN-1844][FOLLOWUP] Fix the condition of StoragePolicy that worker uses memory storage 2025-08-06 10:36:07 +08:00
pom.xml [CELEBORN-1994] Introduce disruptor dependency to support asynchronous logging of log4j2 2025-05-13 19:45:51 +08:00