Simple date format each time new object creation removed#3080
Simple date format each time new object creation removed#3080khanimteyaz wants to merge 15 commits intoapache:masterfrom
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.
How about move this to AccessLogData's constructor?
|
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-testto make sure unit-test and integration-test pass.