arextest / arex-agent-java

Lightweight Java agent for traffic capture and replay, enhancing testing and debugging.
https://doc.arextest.com/
Apache License 2.0
460 stars 94 forks source link

[Bug] 存在10%的录制请求没有录制成功的情况。 #587

Open 376924098 opened 2 hours ago

376924098 commented 2 hours ago

Search before asking

AREX Test Service

AREX Java Agent (arextest/arex-agent-java)

Current Behavior

存在10%的录制请求没有录制成功的情况。 http 和 database 、Redis都没有录制成功。目前初步怀疑和feign有关系(只有一个外部 feign请求的录制也失败了 ) 通过录制环境打印日志发现,RepeatedcollectManager.exitAndValidate() 返回的false。 只有 depth<=0 才能录制,目前存在一些情况 depth 最大是9,而正常录制的depth 最大是4。 微信图片_20241118173511

微信图片_20241118173524 微信图片_20241118173534

Expected Behavior

所有请求都可以正常进行录制

Steps To Reproduce

...

Anything else

No response

Are you willing to submit a pull request to fix on your own?

376924098 commented 2 hours ago

![Uploading 微信截图_20241118174726.png…]() feign 依赖信息

org.springframework.cloud spring-cloud-starter-openfeign ${springcloud-openfeign-version} io.github.openfeign feign-httpclient ${feign-httpclient-version} 2.2.6.RELEASE 11.0

Manifest-Version: 1.0 Implementation-Title: Spring Cloud OpenFeign Core Implementation-Version: 2.2.6.RELEASE Built-By: jenkins Implementation-Vendor-Id: org.springframework.cloud Created-By: Apache Maven 3.5.0 Build-Jdk: 1.8.0_242 Implementation-URL: https://spring.io/spring-cloud/spring-cloud-openfe ign/spring-cloud-openfeign-core Implementation-Vendor: Pivotal Software, Inc.

376924098 commented 2 hours ago

dependency groupIdorg.springframework.cloud/groupId artifactIdspring-cloud-starter-openfeign/artifactId version${springcloud-openfeign-version}/version dependency dependency groupIdio.github.openfeign/groupId artifactIdfeign-httpclient/artifactId version${feign-httpclient-version}/version dependency

springcloud-openfeign-version2.2.6.RELEASE/springcloud-openfeign-version feign-httpclient-version11.0/feign-httpclient-version