Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
376924098 opened this issue Nov 18, 2024 · 3 comments
Open
1 of 2 tasks

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

376924098 opened this issue Nov 18, 2024 · 3 comments
Assignees
Labels
bug 🐞 Something isn't working

Comments

@376924098
Copy link

Search before asking

  • I have searched the existing issues 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?

  • Yes I am willing to submit a pull request on my own!
@376924098 376924098 added the bug 🐞 Something isn't working label Nov 18, 2024
@376924098
Copy link
Author

376924098 commented Nov 18, 2024

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
Copy link
Author

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

@lucas-myx
Copy link
Collaborator

在Spring中使用OpenFeign时,默认情况下会启用缓存。怀疑未录制的feign调用是命中了spring的缓存,并未真正调用,可以先关闭feign的缓存,找到你们项目中设置或创建feign的地方,类似如下操作:

Feign.builder().options(new Options(10, TimeUnit.SECONDS, true));// 第三个参数改为false

如果找不到可以网上搜索下怎么设置,然后再重新录制看看是否能录制下来

@lucas-myx lucas-myx self-assigned this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants