-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CELEBORN-1490][CIP-6] Add Flink Hybrid Shuffle IT test cases
### What changes were proposed in this pull request? 1. Add Flink Hybrid Shuffle IT test cases 2. Fix bug in open stream. ### Why are the changes needed? Test coverage for celeborn + hybrid shuffle ### Does this PR introduce _any_ user-facing change? No Closes #2859 from reswqa/10-itcase-10month. Authored-by: Weijie Guo <[email protected]> Signed-off-by: SteNicholas <[email protected]>
- Loading branch information
1 parent
e2f640c
commit c12e888
Showing
11 changed files
with
408 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
tests/flink-it/src/test/java/org/apache/celeborn/tests/flink/FlinkVersion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.celeborn.tests.flink; | ||
|
||
import org.apache.flink.annotation.Public; | ||
|
||
/** All supported flink versions. */ | ||
@Public | ||
public enum FlinkVersion { | ||
v1_14("1.14"), | ||
v1_15("1.15"), | ||
v1_16("1.16"), | ||
v1_17("1.17"), | ||
v1_18("1.18"), | ||
v1_19("1.19"), | ||
v1_20("1.20"); | ||
|
||
private final String versionStr; | ||
|
||
FlinkVersion(String versionStr) { | ||
this.versionStr = versionStr; | ||
} | ||
|
||
public static FlinkVersion fromVersionStr(String versionStr) { | ||
switch (versionStr) { | ||
case "1.14": | ||
return v1_14; | ||
case "1.15": | ||
return v1_15; | ||
case "1.16": | ||
return v1_16; | ||
case "1.17": | ||
return v1_17; | ||
case "1.18": | ||
return v1_18; | ||
case "1.19": | ||
return v1_19; | ||
case "1.20": | ||
return v1_20; | ||
default: | ||
throw new IllegalArgumentException("Unsupported flink version: " + versionStr); | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return versionStr; | ||
} | ||
|
||
public boolean isNewerOrEqualVersionThan(FlinkVersion otherVersion) { | ||
return this.ordinal() >= otherVersion.ordinal(); | ||
} | ||
} |
Oops, something went wrong.