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

[ISSUE #7454] Utilizing cache to avoid duplicate parsing #7455

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

guyinyou
Copy link
Contributor

Which Issue(s) This PR Fixes

Fixes #7454

Brief Description

How Did You Test This Change?

@echooymxq
Copy link
Contributor

How about add a method argument to decide cacheable?🤔️

@@ -260,7 +261,11 @@ public void writeCustomHeader(CommandCustomHeader customHeader) {

public CommandCustomHeader decodeCommandCustomHeader(
Class<? extends CommandCustomHeader> classHeader) throws RemotingCommandException {
return decodeCommandCustomHeader(classHeader, true);
if (cachedHeader != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

对于两次不同的入参,这种写法会出现返回结果相同的情况。符合预期吗

@guyinyou
Copy link
Contributor Author

have changed

Copy link
Contributor

@joeCarf joeCarf left a comment

Choose a reason for hiding this comment

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

LGTM

@RongtongJin RongtongJin merged commit f0f15b5 into apache:develop Oct 19, 2023
9 of 10 checks passed
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.

[Enhancement] Long Polling Repetitive Processing RequestHeader
4 participants