[Improvement][Log] optimize task log path to reduce task running time#6731
[Improvement][Log] optimize task log path to reduce task running time#6731CalvinKirs merged 9 commits intoapache:devfrom
Conversation
* Reduce the creation of log directories * Consider that schedulerTime may be null,and taskExecutionContext does not have submitTime, so use firstSubmitTime as the task log path
Codecov Report
@@ Coverage Diff @@
## dev #6731 +/- ##
============================================
+ Coverage 41.83% 41.87% +0.03%
- Complexity 3618 3622 +4
============================================
Files 641 641
Lines 25895 25922 +27
Branches 2795 2797 +2
============================================
+ Hits 10833 10854 +21
- Misses 14081 14085 +4
- Partials 981 983 +2
Continue to review full report at Codecov.
|
|
well done! |
|
you can refer this doc :https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html |
Of course, this is my mistake. |
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Remove the extra blank lines and only keep one blank line
| public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss"; | ||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Remove the extra blank lines and only keep one blank line.
BTW, @zhongjiajie can you please set up a code style rule to only allow at most one blank line between member fields / methods?
| /** | ||
| * get specify date | ||
| */ | ||
| public static Date getSpecifyDate(int year, int month, int date) { |
There was a problem hiding this comment.
Please, this method is only for test, it's not necessary to add this method to increase maintainers' burden, please just move it into the test.
* remove extra blank lines * remove unnecessary test function
|
Hi @choucmei code look good to me now, but unit test failed, could you take a look and fix it? |
|
Kudos, SonarCloud Quality Gate passed! |
|
@CalvinKirs Seem CI green, could you rebase again and merge it? |
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/LoggerUtils.java
Show resolved
Hide resolved
ruanwenjun
left a comment
There was a problem hiding this comment.
LGTM, I have test on standalone, it works well.
|
@CalvinKirs Sooooo fast! 🚀 |
|
good job |








Purpose of the pull request
close #6665
Brief change log
Verify this pull request
LoggerUtils,LogUtilsTest is already covered by existing tests,
others pass local test.