Fix ConcurrencyModification exception in KotlinBuildStatsBeanService
#KT-65825 Fixed
This commit is contained in:
committed by
Space Team
parent
ec12637d7a
commit
7ad371b215
+1
-1
@@ -165,6 +165,7 @@ abstract class BuildFusService : BuildService<BuildFusService.Parameters>, AutoC
|
||||
if (!parameters.useBuildFinishFlowAction.get()) {
|
||||
recordBuildFinished(buildFailed)
|
||||
}
|
||||
KotlinBuildStatsBeanService.closeServices()
|
||||
log.kotlinDebug("Close ${this.javaClass.simpleName}")
|
||||
}
|
||||
|
||||
@@ -176,7 +177,6 @@ abstract class BuildFusService : BuildService<BuildFusService.Parameters>, AutoC
|
||||
loggerService.initSessionLogger(buildId)
|
||||
loggerService.reportBuildFinished(fusMetricsConsumer)
|
||||
}
|
||||
KotlinBuildStatsBeanService.closeServices()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
@@ -87,10 +87,12 @@ internal abstract class KotlinBuildStatsBeanService internal constructor(
|
||||
}
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
internal fun recordBuildStart(buildId: String) {
|
||||
kotlinBuildStatsServicesRegistry?.recordBuildStart(buildId)
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun closeServices() {
|
||||
kotlinBuildStatsServicesRegistry?.close()
|
||||
kotlinBuildStatsServicesRegistry = null
|
||||
|
||||
+2
-4
@@ -556,10 +556,8 @@ internal constructor(
|
||||
val output = outputFile.get()
|
||||
output.parentFile.mkdirs()
|
||||
|
||||
buildFusService.orNull?.use {
|
||||
it.reportFusMetrics {
|
||||
NativeCompilerOptionMetrics.collectMetrics(compilerOptions, it)
|
||||
}
|
||||
buildFusService.orNull?.reportFusMetrics {
|
||||
NativeCompilerOptionMetrics.collectMetrics(compilerOptions, it)
|
||||
}
|
||||
|
||||
ArgumentUtils.convertArgumentsToStringList(arguments)
|
||||
|
||||
Reference in New Issue
Block a user