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

read keepAlive to avoid useless warning: 'lease keepalive response qu… #115

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

igotcha
Copy link
Contributor

@igotcha igotcha commented Oct 9, 2023

read keepAlive to avoid useless warning logs, eg:

{"level":"warn","ts":"2023-10-09T21:15:11.243+0800","logger":"etcd-client","caller":"v3/lease.go:524","msg":"lease keepalive response queue is full; dropping response send","queue-size":16,"queue-capacity":16}
{"level":"warn","ts":"2023-10-09T21:15:11.243+0800","logger":"etcd-client","caller":"v3/lease.go:524","msg":"lease keepalive response queue is full; dropping response send","queue-size":16,"queue-capacity":16}
{"level":"warn","ts":"2023-10-09T21:15:21.253+0800","logger":"etcd-client","caller":"v3/lease.go:524","msg":"lease keepalive response queue is full; dropping response send","queue-size":16,"queue-capacity":16}
{"level":"warn","ts":"2023-10-09T21:15:21.253+0800","logger":"etcd-client","caller":"v3/lease.go:524","msg":"lease keepalive response queue is full; dropping response send","queue-size":16,"queue-capacity":16}
...

@igotcha
Copy link
Contributor Author

igotcha commented Oct 9, 2023

related issues:
google/trillian#2249

@@ -420,6 +420,12 @@ func (c *Client) keepAliveKV(k string, v string) error {
return perrors.New("keep alive lease")
}

// read keepAlive to avoid useless warning: 'lease keepalive response queue is full; dropping response send'
go func() {
Copy link
Collaborator

@AlexStocks AlexStocks Oct 10, 2023

Choose a reason for hiding this comment

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

但是这样处理也太粗糙了吧?死循环?如果有更优雅的写法,可以改进下,没有那我明天给merge下

Copy link
Contributor Author

@igotcha igotcha Oct 10, 2023

Choose a reason for hiding this comment

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

已参考trillian 类似的方法处理: https://github.com/google/trillian/pull/2655/files

@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (1d099ab) 73.62% compared to head (14ff177) 73.62%.

❗ Current head 14ff177 differs from pull request most recent head a7ce39f. Consider uploading reports for the commit a7ce39f to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
- Coverage   73.62%   73.62%   -0.01%     
==========================================
  Files          51       51              
  Lines        4959     4970      +11     
==========================================
+ Hits         3651     3659       +8     
- Misses       1075     1078       +3     
  Partials      233      233              
Files Coverage Δ
database/kv/etcd/v3/client.go 64.70% <72.72%> (+0.33%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…eue is full; dropping response send'

Signed-off-by: DengXiewei <dengxiewei@eaglecloud.com>
@AlexStocks AlexStocks merged commit 90f586b into dubbogo:master Oct 11, 2023
2 checks passed
@AlexStocks
Copy link
Collaborator

代码已经合并,需要我打个版本吗?

@igotcha
Copy link
Contributor Author

igotcha commented Oct 11, 2023

代码已经合并,需要我打个版本吗?

好的, 谢谢啦

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