-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-32916][SHUFFLE] Implementation of shuffle service that leverages push-based shuffle in YARN deployment mode #30062
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
Closed
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
df48e01
LIHADOOP-48527 Magnet shuffle service block transfer netty protocol
Victsm 6472267
LIHADOOP-53438 Using different appId for the tests in RemoteBlockPush…
otterc 1c78e1d
LIHADOOP-53496 Not logging all block push exceptions on the client
otterc 71f3246
LIHADOOP-53700 Separate configuration for caching the merged index fi…
zhouyejoe 221178f
LIHADOOP-53940 Logging the data file and index file path when shuffle…
otterc 55b4a5f
LIHADOOP-54059 LIHADOOP-53496 Handle the inconsistencies between loc…
otterc f9d0e86
LIHADOOP-54379 Sorting the disks both on shuffle service and executors
otterc 548e2c0
LIHADOOP-52494 Magnet fallback to origin shuffle blocks when fetch of…
otterc 50efba9
LIHADOOP-55372 reduced the default for minChunkSizeInMergedShuffleFile
otterc 8a6e01b
LIHADOOP-55315 Avoid network when fetching merged shuffle file in loc…
zhouyejoe ae5ffac
LIHADOOP-55654 Duplicate application init calls trigger NPE and wrong…
zhouyejoe e51042b
Further prune changes that should go into a later PR.
Victsm 83aca99
LIHADOOP-54379 Sorting the disks both on shuffle service and executors
otterc 04e0efe
LIHADOOP-55022 Disable the merged shuffle file cleanup in stopApplica…
zhouyejoe 71dfd48
Tests and cleanup
otterc 0c411c1
LIHADOOP-55948 Failure in the push stream should not change the curre…
otterc d029463
Minor style corrections
otterc 8f3839f
Fixed style issues
otterc 1cd2d03
Renamed variables, methods, fixed indentation, addressed other review…
otterc 3356c19
Addressing review comments
otterc d879beb
Changed the partitions map and addressed other review comments
otterc 48ae819
Added support for subdirs under merge_manager dirs and removed the ya…
otterc 9b031f7
Addressed test failure and other review comments in RemoteBlockPushRe…
otterc 807cc7b
Minor change in finalization
otterc 5b169bc
Removing the partition from inner map after the files are closed
otterc 9ece587
Server side configuration to specify the implementation of MergedShuf…
otterc d13c7ad
Change the Push block stream to not encode shuffle Id, map index, and…
otterc 63843bb
Fixed typos, address review comments, made NoOp the default impl, and…
otterc d35aa4b
Addressed review comments
otterc ba92311
Fix IndexOutOfBoundsException and avoid instantiating AppsPathInfo mu…
otterc 9be25b3
Removed duplicate declaration of shuffle push prefix
otterc ba51796
Added UT for collision with 2 streams
otterc 1f4fcfe
Removed unnecessary TODOs, marked MergedShuffleFileManager evolving, …
otterc 28edaae
Changed the serialization on chunktracker and removed serializedSizeI…
otterc cb1881c
Use RandomAccessFile
otterc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
68 changes: 68 additions & 0 deletions
68
common/network-common/src/test/java/org/apache/spark/network/protocol/EncodersSuite.java
This file contains hidden or 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,68 @@ | ||
| /* | ||
| * 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.spark.network.protocol; | ||
|
|
||
| import io.netty.buffer.ByteBuf; | ||
| import io.netty.buffer.Unpooled; | ||
| import org.junit.Test; | ||
| import org.roaringbitmap.RoaringBitmap; | ||
|
|
||
| import static org.junit.Assert.*; | ||
|
|
||
| /** | ||
| * Tests for {@link Encoders}. | ||
| */ | ||
| public class EncodersSuite { | ||
|
|
||
| @Test | ||
| public void testRoaringBitmapEncodeDecode() { | ||
| RoaringBitmap bitmap = new RoaringBitmap(); | ||
| bitmap.add(1, 2, 3); | ||
| ByteBuf buf = Unpooled.buffer(Encoders.Bitmaps.encodedLength(bitmap)); | ||
| Encoders.Bitmaps.encode(buf, bitmap); | ||
| RoaringBitmap decodedBitmap = Encoders.Bitmaps.decode(buf); | ||
| assertEquals(bitmap, decodedBitmap); | ||
| } | ||
|
|
||
| @Test (expected = java.nio.BufferOverflowException.class) | ||
| public void testRoaringBitmapEncodeShouldFailWhenBufferIsSmall() { | ||
| RoaringBitmap bitmap = new RoaringBitmap(); | ||
| bitmap.add(1, 2, 3); | ||
| ByteBuf buf = Unpooled.buffer(4); | ||
| Encoders.Bitmaps.encode(buf, bitmap); | ||
| } | ||
|
|
||
| @Test | ||
| public void testBitmapArraysEncodeDecode() { | ||
| RoaringBitmap[] bitmaps = new RoaringBitmap[] { | ||
| new RoaringBitmap(), | ||
| new RoaringBitmap(), | ||
| new RoaringBitmap(), // empty | ||
| new RoaringBitmap(), | ||
| new RoaringBitmap() | ||
| }; | ||
| bitmaps[0].add(1, 2, 3); | ||
| bitmaps[1].add(1, 2, 4); | ||
| bitmaps[3].add(7L, 9L); | ||
| bitmaps[4].add(1L, 100L); | ||
| ByteBuf buf = Unpooled.buffer(Encoders.BitmapArrays.encodedLength(bitmaps)); | ||
| Encoders.BitmapArrays.encode(buf, bitmaps); | ||
| RoaringBitmap[] decodedBitmaps = Encoders.BitmapArrays.decode(buf); | ||
| assertArrayEquals(bitmaps, decodedBitmaps); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.