-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up Spark + Flink unit test execution
`test` task execution for Spark and Flink is rather slow. Gradle allows forking multiple JVMs to parallelize test execution, test _classes_ are distributed amount the available test worker JVMs. This change allows more than one parallel fork (test worker JVM). The maximum number of workers is calculated like this:`max(min(Integer.getInteger("iceberg.maxSparkTestParallelism", 2), Runtime.runtime.availableProcessors() / 2), 1)`. The default max settings for Spark and Flink are configured in `gradle.properties` to `2`, but this can be overridden in `~/.gradle/gradle.properties`. This change does not affect CI, because in CI the number of "CPUs" on GitHub free hosted runners is 2, divided by 2 = 1.
- Loading branch information
Showing
7 changed files
with
66 additions
and
23 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