This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/main by this push:
new 0f654e5 [KARAF-7074] Set default resolution parallelism to 2
new a06ad42 Merge pull request #1336 from jbonofre/KARAF-7074
0f654e5 is described below
commit 0f654e51e11fca2645fbaa68b476a037d9b84262
Author: jbonofre <[email protected]>
AuthorDate: Wed Mar 24 19:15:26 2021 +0100
[KARAF-7074] Set default resolution parallelism to 2
---
profile/src/main/java/org/apache/karaf/profile/assembly/Builder.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/profile/src/main/java/org/apache/karaf/profile/assembly/Builder.java
b/profile/src/main/java/org/apache/karaf/profile/assembly/Builder.java
index c567084..30511b1 100644
--- a/profile/src/main/java/org/apache/karaf/profile/assembly/Builder.java
+++ b/profile/src/main/java/org/apache/karaf/profile/assembly/Builder.java
@@ -306,7 +306,8 @@ public class Builder {
String generateConsistencyReport;
String consistencyReportProjectName;
String consistencyReportProjectVersion;
- int resolverParallelism = Math.max(1,
Runtime.getRuntime().availableProcessors());
+ // KARAF-7074: for recursive/inner features, we should use parallelism by
default
+ int resolverParallelism = Math.max(2,
Runtime.getRuntime().availableProcessors());
private ScheduledExecutorService executor;
private DownloadManager manager;