Skip to content

Conversation

@jonenst
Copy link
Contributor

@jonenst jonenst commented Jan 23, 2023

By chance, the exception didn't hinder the tests but it could so fix it

in SecurityAnalysisControllerTest#runAndSaveTest
15:51:19.038 [parallel-8] ERROR org.gridsuite.securityanalysis.server.service.SecurityAnalysisWorkerService - Exception in consumeRun java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread parallel-8
at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:83)
at reactor.core.publisher.Mono.block(Mono.java:1707)
at org.gridsuite.securityanalysis.server.service.SecurityAnalysisWorkerService.lambda$consumeRun$14(SecurityAnalysisWorkerService.java:296)
at org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.invokeConsumer(SimpleFunctionRegistry.java:987)

By chance, the exception didn't hinder the tests but it could so fix it

in SecurityAnalysisControllerTest#runAndSaveTest
15:51:19.038 [parallel-8] ERROR org.gridsuite.securityanalysis.server.service.SecurityAnalysisWorkerService - Exception in consumeRun
java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread parallel-8
	at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:83)
	at reactor.core.publisher.Mono.block(Mono.java:1707)
	at org.gridsuite.securityanalysis.server.service.SecurityAnalysisWorkerService.lambda$consumeRun$14(SecurityAnalysisWorkerService.java:296)
	at org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.invokeConsumer(SimpleFunctionRegistry.java:987)
@jonenst jonenst requested review from geofjamg and thangqp January 23, 2023 15:10
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants