Closed patpatpat123 closed 1 year ago
Hi @patpatpat123 ,
Can you confirm that you do not have the context-propagation dependency in your classpath, and then, adding the dependency removes the log ?
actually, we have a pending PR in reactor-core (https://github.com/reactor/reactor-core/pull/3459) which will normally resolve this issue. The issue is in reactor-core which is triggering blockhound instrumentation on some contex-propagation types even when the optional context-propagation jar is not in the classpath (I Need to wait for team decision before being able to merge the reactor-core PR).
Hello @pderop , thank you for the quick turnaround.
Here is a list of all my dependencies:
<dependencies>
<dependency>
<groupId>io.projectreactor.tools</groupId>
<artifactId>blockhound</artifactId>
<version>1.0.8.RELEASE</version>
</dependency>
<dependency>
<groupId>io.projectreactor.kafka</groupId>
<artifactId>reactor-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-elastic</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-otel</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-otlp</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-reactive-httpclient</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-context</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
<version>7.3</version>
</dependency>
<dependency>
<groupId>io.confluent</groupId>
<artifactId>kafka-json-serializer</artifactId>
<version>7.3.3</version>
</dependency>
Nothing special here, any springboot reactive kafka app would have the same.
I am not sure which "context-propagation" are you referring to.
Could you please provide the full name?
I will be more than happy to look at the entire dependency:tree and also adding it inside the pom as you suggested in your comment
normally, if you add the following in your dependencies, it should work around the problem until we release the reactor-core PR:
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>context-propagation</artifactId>
<version>1.0.2</version>
</dependency>
please let me know ? thanks !
You are correct! Verified. With my setup, without your dependency, the error is 100% reproducible.
Adding your dependency, error is gone!
I shall wait for reactor core PR. Closing.
Many thanks!
Duplicate of #356
Expected Behavior
Run BlockHound without issue
Actual Behavior
reproducible 100%, I am seeing this issue:
Steps to Reproduce
note, I have as argument
-XX:+AllowRedefinitionToAddDeleteMethods
, not with SurefirePossible Solution
I do not have any possible solution
Your Environment
SpringBoot 3.1.0-RC2
netty
, ...): dependencies from SpringBoot 3.1.0-RC2java -version
): graalVM 17uname -a
): reproducible with MacOS, Unix, Windows