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

use new dns client to fix data race and reuse connect #341

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

ii2day
Copy link
Collaborator

@ii2day ii2day commented Nov 21, 2023

1.原方法在使用 udp 协议复用连接时,因为 msg id 问题,返回会被抛弃,通过更改连接复用的使用方式,达到复用连接时不丢弃消息,同时因 tcp 协议在服务端会存在连接时长过长问题被动断开连接,因此 tcp 协议不进行连接复用。
2.e2e 资源 limit 增加
3. e2e 增加延迟数值
fix #298
fix #305

@ii2day
Copy link
Collaborator Author

ii2day commented Nov 21, 2023

原 pr 代码推送上来后,分支有更新,但是 pr 没有更新,怀疑遇到了 github 的bug,因此重新开启新的 pr
提交。#329

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

Merging #341 (96cd580) into main (d2f0879) will increase coverage by 0.34%.
The diff coverage is 80.28%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #341      +/-   ##
==========================================
+ Coverage   80.73%   81.07%   +0.34%     
==========================================
  Files          22       22              
  Lines        1557     1596      +39     
==========================================
+ Hits         1257     1294      +37     
- Misses        223      224       +1     
- Partials       77       78       +1     
Flag Coverage Δ
unittests 81.07% <80.28%> (+0.34%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pkg/loadRequest/loadHttp/http_requester.go 86.72% <100.00%> (ø)
pkg/resource/resource.go 95.91% <100.00%> (+0.36%) ⬆️
pkg/loadRequest/loadDns/dns_requester.go 87.43% <77.41%> (+1.53%) ⬆️

@ii2day ii2day force-pushed the main branch 2 times, most recently from f515cf9 to 05f7c79 Compare November 21, 2023 10:57
@@ -779,7 +779,7 @@ var _ = Describe("testing appHttpHealth test ", Label("appHttpHealth"), func() {
Expect(e).NotTo(HaveOccurred(), "check task runtime resource delete")
})

It("Successfully testing using default daemonSet as workload with Task AppHttpHealthy ", Label("E00014"), func() {
It("Successfully testing using default daemonSet as workload with Task AppHttpHealthy ", Pending, Label("E00014"), func() {
Copy link
Collaborator Author

@ii2day ii2day Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default agent 的几个用例,有时会出现 oom 的情况,需要重新调整用例,以及查找 oom 的原因,暂时先 pending 下。
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增加了 limit 数值,未现 oom 了

@ii2day ii2day added the pr/not-ready not ready for merging label Nov 22, 2023
@ii2day ii2day force-pushed the main branch 7 times, most recently from 6eb01a8 to 3e9242b Compare November 22, 2023 07:18
@@ -14,8 +14,8 @@ import (

var _ = Describe("testing netReach ", Label("netReach"), func() {
var termMin = int64(1)
// 1000ms is not stable on GitHub ci, so increased to 3000ms
var requestTimeout = 3000
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ci 机器上的延时有些高,因此调整到 6000 .
企业微信截图_3c8ef1d5-6efa-4120-b8b0-48c95b7d470f

@ii2day ii2day force-pushed the main branch 7 times, most recently from 1f2b5e1 to 9543d94 Compare November 22, 2023 10:41
Signed-off-by: ii2day <ji.li@daocloud.io>
@ii2day ii2day removed the pr/not-ready not ready for merging label Nov 22, 2023
@weizhoublue weizhoublue merged commit a64f8c2 into kdoctor-io:main Nov 22, 2023
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dns client cannot use link reuse correctly dns client data race
2 participants