@ -117,8 +117,17 @@ public abstract class AbstractBaseBenchmark {
}
private static int getForks() {
String value = System.getProperty("forkCount");
return null != value ? Integer.parseInt(value) : -1;
String forkCount = System.getProperty("forkCount");
if (forkCount == null) {
return -1;
try {
return Integer.parseInt(forkCount);
} catch (NumberFormatException e) {
logger.error("fail to convert forkCount into int", e);
@ -640,11 +640,6 @@
<version>${spotless.version}</version>
<configuration>
<java>
<!--TODO: Remove the following excludes section when junit4 removed from e2e and microbench module-->
<excludes>
<exclude>**/e2e/**/*.java</exclude>
<exclude>**/microbench/**/*.java</exclude>
</excludes>
<eclipse>
<file>style/spotless_dolphinscheduler_formatter.xml</file>
</eclipse>
@ -693,7 +688,6 @@
<include>docs/**/*.md</include>
</includes>
<!--Avoid conflicts with formatting tools in some special modules-->
<exclude>**/.github/**/*.md</exclude>
<flexmark />