Skip to content

use caffeine instead of ConcurrentLinkedHashMap (#2871)#2878

Open
shaoqiang6 wants to merge 4 commits intoalibaba:masterfrom
shaoqiang6:dev-caffeine2
Open

use caffeine instead of ConcurrentLinkedHashMap (#2871)#2878
shaoqiang6 wants to merge 4 commits intoalibaba:masterfrom
shaoqiang6:dev-caffeine2

Conversation

@shaoqiang6
Copy link
Copy Markdown

Describe what this PR does / why we need it

use caffeine instead of ConcurrentLinkedHashMap

Does this pull request fix one issue?

Fixes #2871

Describe how you did it

Describe how to verify it

Special notes for reviews

@sczyh30 sczyh30 added kind/enhancement Category issues or prs related to enhancement. to-review To review labels Sep 13, 2022
@shaoqiang6
Copy link
Copy Markdown
Author

shaoqiang6 commented Sep 14, 2022

com.alibaba.csp.sentinel.slots.statistic.data.ParamMapBucketTest#testAddEviction 这个测试用例我写错了,需要增加sleep,来验证key驱逐
请问我是仅仅修改后提交,还是要合并commit 重新发起PR?

@sczyh30
Copy link
Copy Markdown
Member

sczyh30 commented Sep 15, 2022

com.alibaba.csp.sentinel.slots.statistic.data.ParamMapBucketTest#testAddEviction 这个测试用例我写错了,需要增加sleep,来验证key驱逐 请问我是仅仅修改后提交,还是要合并commit 重新发起PR?

接着提交即可

Copy link
Copy Markdown
Contributor

@su-yh su-yh left a comment

Choose a reason for hiding this comment

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

如果使用了Caffeine ,期望能将concurrentlinkedhashmap-lru 组件整体从项目中移除掉。
公司会做开源扫描,这个组件有漏洞不让使用。

initialize(rule, true);
}

public void initialize(ParamFlowRule rule, boolean useCaffeine) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

如果使用了Caffeine ,期望能将concurrentlinkedhashmap-lru 组件整体从项目中移除掉。
公司会做开源扫描,这个组件有漏洞不让使用。

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

3Q

@shaoqiang6 shaoqiang6 requested a review from su-yh October 8, 2022 00:49
@sczyh30 sczyh30 requested review from brotherlu-xcq, cdfive and sczyh30 and removed request for su-yh October 10, 2022 03:49
@shaoqiang6 shaoqiang6 requested review from su-yh and removed request for brotherlu-xcq, cdfive and sczyh30 October 20, 2022 10:44
@shaoqiang6 shaoqiang6 marked this pull request as draft October 20, 2022 10:46
@shaoqiang6
Copy link
Copy Markdown
Author

shaoqiang6 commented Oct 20, 2022

com.alibaba.csp.sentinel.slots.statistic.data.ParamMapBucketTest#testAddEviction 这个测试用例我写错了,需要增加sleep,来验证key驱逐 请问我是仅仅修改后提交,还是要合并commit 重新发起PR?

接着提交即可

刚刚我点错了review请求, 烦请重新指定一下 review 人员, 谢谢您

@shaoqiang6 shaoqiang6 marked this pull request as ready for review October 20, 2022 10:51
@shaoqiang6
Copy link
Copy Markdown
Author

shaoqiang6 commented Nov 13, 2022

merge master, please review thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement Category issues or prs related to enhancement. to-review To review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace deprecated concurrentlinkedhashmap-lru with Caffeine in param-flow-extension

3 participants