-
Notifications
You must be signed in to change notification settings - Fork 606
[GLUTEN-12053][CELEBORN] Bump Celeborn version to 0.6.3 #12057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -700,4 +700,54 @@ public static void stopFailedShuffleCleaner(Object failedShuffleCleaner) { | |
| throw new RuntimeException(e); | ||
| } | ||
| } | ||
|
|
||
| public static void prepareForMergeData( | ||
| ShuffleClient shuffleClient, int shuffleId, int mapId, int attemptId) { | ||
| try { | ||
| Method prepareMethod = | ||
| shuffleClient | ||
| .getClass() | ||
| .getDeclaredMethod("prepareForMergeData", Integer.TYPE, Integer.TYPE, Integer.TYPE); | ||
| prepareMethod.invoke(shuffleClient, shuffleId, mapId, attemptId); | ||
| } catch (NoSuchMethodException ignored) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we have a warning for this?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jackylee-ch, it's unnecessary to log warning for this. This interface is removed from 0.6.3. In addtion, other method invokers also do not log warning for |
||
| } catch (Exception e) { | ||
| throw new RuntimeException(e); | ||
| } | ||
| } | ||
|
|
||
| public static void mapperEnd( | ||
| ShuffleClient shuffleClient, | ||
| int shuffleId, | ||
| int mapId, | ||
| int attemptId, | ||
| int numMappers, | ||
| int numPartitions) { | ||
| try { | ||
| try { | ||
| // for Celeborn 0.6.3 | ||
| Method mapperEndMethod = | ||
| shuffleClient | ||
| .getClass() | ||
| .getDeclaredMethod( | ||
| "mapperEnd", | ||
| Integer.TYPE, | ||
| Integer.TYPE, | ||
| Integer.TYPE, | ||
| Integer.TYPE, | ||
| Integer.TYPE); | ||
| mapperEndMethod.invoke( | ||
| shuffleClient, shuffleId, mapId, attemptId, numMappers, numPartitions); | ||
| } catch (NoSuchMethodException e) { | ||
| Method mapperEndMethod = | ||
| shuffleClient | ||
| .getClass() | ||
| .getDeclaredMethod( | ||
| "mapperEnd", Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); | ||
| mapperEndMethod.invoke(shuffleClient, shuffleId, mapId, attemptId, numMappers); | ||
| } | ||
| } catch (NoSuchMethodException ignored) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
| } catch (Exception e) { | ||
| throw new RuntimeException(e); | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should cache reflection methods to avoid creating them on every call.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wForget, this improvement would be implemented in another pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create an issue to track this first?