Speed up ExpireSnapshotAction Test by Reducing Shuffle Paralleism#1362
Merged
rdblue merged 1 commit intoapache:masterfrom Aug 20, 2020
Merged
Speed up ExpireSnapshotAction Test by Reducing Shuffle Paralleism#1362rdblue merged 1 commit intoapache:masterfrom
rdblue merged 1 commit intoapache:masterfrom
Conversation
Because we use LocalIterator in ExpireSnapshotAction, every partition runs it's own spark job, almost all of which are completely empty. This leads to a lot of overhead which we don't need in the Test Suite. Setting shuffle parallelism to 1 (from 200) greatly reduces the test runtime.
Contributor
|
Thanks! That looks much better. |
Contributor
|
@RussellSpitzer, @aokolnychyi, if using the local iterator causes a job per task to be submitted to Spark, should we avoid using it? If every file to delete takes up 500 bytes in memory, then the driver can hold 4 million files in 2GB. That seems reasonable to me, so we may be over-optimizing by using the iterator instead of just collecting the data back. |
Member
Author
|
That was my original thought, but I think we wanted to air on the side of
caution. I think it would be fine if we just made it configurable. Add a
switch for "lazy" execution?
…On Thu, Aug 20, 2020 at 6:45 PM Ryan Blue ***@***.***> wrote:
@RussellSpitzer <https://github.com/RussellSpitzer>, @aokolnychyi
<https://github.com/aokolnychyi>, if using the local iterator causes a
job per task to be submitted to Spark, should we avoid using it?
If every file to delete takes up 500 bytes in memory, then the driver can
hold 4 million files in 2GB. That seems reasonable to me, so we may be
over-optimizing by using the iterator instead of just collecting the data
back.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1362 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADE2YJS5YZZKAHDXL4ZLSDSBWYQ3ANCNFSM4QGVJG7Q>
.
|
Contributor
|
That sounds good to me! |
Member
Author
|
Another idea is that we could just move all the deletes to the executors
... this would remove the need to configure something and all driver side
work entirely.
The only downsides I see to that are
* we have to make a Serializable Consumer class for deletes (not a big deal)
* we have to redo all the tests that use "Collection::add" to use an accumulator ... this should work
* All logging about delete failures would be in executor logs so harder to actually see
…On Thu, Aug 20, 2020 at 6:58 PM Ryan Blue ***@***.***> wrote:
That sounds good to me!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1362 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADE2YKLRGNKVC2V7HZ7TQLSBW2B3ANCNFSM4QGVJG7Q>
.
|
rdblue
pushed a commit
to rdblue/iceberg
that referenced
this pull request
Aug 24, 2020
…lelism (apache#1362) Because we use LocalIterator in ExpireSnapshotAction, every partition runs it's own spark job, almost all of which are completely empty. This leads to a lot of overhead which we don't need in the Test Suite. Setting shuffle parallelism to 1 (from 200) greatly reduces the test runtime.
parthchandra
pushed a commit
to parthchandra/iceberg
that referenced
this pull request
Oct 22, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Because we use LocalIterator in ExpireSnapshotAction, every partition
runs it's own spark job, almost all of which are completely empty. This
leads to a lot of overhead which we don't need in the Test Suite. Setting
shuffle parallelism to 1 (from 200) greatly reduces the test runtime.