aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce-task-projectanalysis
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2022-09-15 15:32:32 +0200
committersonartech <sonartech@sonarsource.com>2022-09-16 20:03:13 +0000
commit04ca35269aa9fee416e8e2f52918820c891d40ec (patch)
tree9ca6c21dc3f441a05fdf928dde462cdf2818d816 /server/sonar-ce-task-projectanalysis
parent5b817e2054ca5401686f700bf2429605b8f2d19d (diff)
downloadsonarqube-04ca35269aa9fee416e8e2f52918820c891d40ec.tar.gz
sonarqube-04ca35269aa9fee416e8e2f52918820c891d40ec.zip
SONAR-17183 increase scanner report size threshold to 4GB
Diffstat (limited to 'server/sonar-ce-task-projectanalysis')
-rw-r--r--server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/ExtractReportStep.java2
-rw-r--r--server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ExtractReportStepTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/ExtractReportStep.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/ExtractReportStep.java
index 449e2e86d6c..5b315fae2b8 100644
--- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/ExtractReportStep.java
+++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/ExtractReportStep.java
@@ -45,7 +45,7 @@ import static org.sonar.core.util.FileUtils.humanReadableByteCountSI;
*/
public class ExtractReportStep implements ComputationStep {
- static final long REPORT_SIZE_THRESHOLD_IN_BYTES = 2_000_000_000;
+ static final long REPORT_SIZE_THRESHOLD_IN_BYTES = 4_000_000_000L;
private static final Logger LOGGER = Loggers.get(ExtractReportStep.class);
private final DbClient dbClient;
diff --git a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ExtractReportStepTest.java b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ExtractReportStepTest.java
index 980a0c9dc05..b4a88014289 100644
--- a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ExtractReportStepTest.java
+++ b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ExtractReportStepTest.java
@@ -104,7 +104,7 @@ public class ExtractReportStepTest {
assertThatThrownBy(() -> underTest.execute(new TestComputationStepContext()))
.isInstanceOf(IllegalStateException.class)
- .hasMessage("Decompression failed because unzipped size reached threshold: 2000000000 bytes");
+ .hasMessage("Decompression failed because unzipped size reached threshold: 4000000000 bytes");
}
private File generateReport() throws IOException {