-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
Simple date format each time new object creation removed #3080
Simple date format each time new object creation removed #3080
Conversation
Hi, @khanimteyaz |
@carryxyh thanks. |
…orListener. * refactor ScriptRouter * refactor TagRouter * refactor AbstractConfiguratorListener * make sure parameter should not be null * correct comments * make ReferenceConfigurationListener private static * avoid dup code in init * add fixme for potential useless code
…/dubbo-registry-default (apache#3053) * add FailedRetryTaskTest.java
} | ||
|
||
private AccessLogData buildAccessLogData(Invoker<?> invoker, Invocation inv) { | ||
RpcContext context = RpcContext.getContext(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about move this to AccessLogData's constructor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
Would u pls rebase master to fix ci failed? |
…yaz/incubator-dubbo into acesslog-dateformat-enhancemnet
Codecov Report
@@ Coverage Diff @@
## master #3080 +/- ##
=========================================
Coverage ? 63.59%
Complexity ? 75
=========================================
Files ? 654
Lines ? 28311
Branches ? 4817
=========================================
Hits ? 18004
Misses ? 8040
Partials ? 2267
Continue to review full report at Codecov.
|
@carryxyh It seems my rebase has introduce lots of commits of others, so raising another PR. |
What is the purpose of the change
AcceLogFilter message creation and last and current check was performing by each time simple date formate object creation. In this version of code I have use the ThreadLocal for each thread wise to create simple date format object instead of each call
#3026
In this PR
- Method naming
- Reducing big methods to small.
This PR is a resurrection of old 3027 (#3027) PR
Sorry for the inconvenience
Brief changelog
XXXXX
Verifying this change
Runnig UT and verifying generated access log.
Follow this checklist to help us incorporate your contribution quickly and easily:
[Dubbo-XXX] Fix UnknownException when host config not exist #XXX
. Each commit in the pull request should have a meaningful subject line and body.mvn clean install -DskipTests=false
&mvn clean test-compile failsafe:integration-test
to make sure unit-test and integration-test pass.