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

[fix#12195] Change date to timestamp to support cross diff time zones #12239

Merged

Conversation

DarkAssassinator
Copy link
Contributor

Purpose of the pull request

fix #12195

Brief change log

Change date to timestamp in TaskExecutionContext
Change date to timestamp in TaskExecuteResultCommand and TaskExecuteRunningCommand
Change all set and get.
Change UT
Add timeStamp2Date and date2TimeStamp utils function.

Verify this pull request

This pull request is already covered by existing tests

@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2022

Codecov Report

Merging #12239 (b1493f3) into dev (55388be) will increase coverage by 0.01%.
The diff coverage is 70.00%.

@@             Coverage Diff              @@
##                dev   #12239      +/-   ##
============================================
+ Coverage     39.71%   39.72%   +0.01%     
- Complexity     4187     4191       +4     
============================================
  Files          1016     1016              
  Lines         38044    38049       +5     
  Branches       4365     4365              
============================================
+ Hits          15110    15116       +6     
+ Misses        21190    21186       -4     
- Partials       1744     1747       +3     
Impacted Files Coverage Δ
...duler/remote/command/TaskExecuteResultCommand.java 0.00% <ø> (ø)
...uler/remote/command/TaskExecuteRunningCommand.java 0.00% <ø> (ø)
...g/apache/dolphinscheduler/spi/utils/DateUtils.java 6.73% <0.00%> (-0.07%) ⬇️
...duler/plugin/task/api/AbstractCommandExecutor.java 0.00% <0.00%> (ø)
.../worker/runner/WorkerDelayTaskExecuteRunnable.java 12.50% <0.00%> (-0.84%) ⬇️
...pache/dolphinscheduler/common/utils/DateUtils.java 74.07% <50.00%> (-0.31%) ⬇️
...erver/worker/runner/WorkerTaskExecuteRunnable.java 40.41% <80.00%> (ø)
...er/master/builder/TaskExecutionContextBuilder.java 66.07% <100.00%> (ø)
...duler/server/master/processor/queue/TaskEvent.java 69.23% <100.00%> (ø)
...pache/dolphinscheduler/service/utils/LogUtils.java 92.59% <100.00%> (+0.28%) ⬆️
... and 4 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarcloud
Copy link

sonarcloud bot commented Sep 30, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

66.7% 66.7% Coverage
0.0% 0.0% Duplication

Copy link
Member

@ruanwenjun ruanwenjun left a comment

Choose a reason for hiding this comment

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

LGTM

@ruanwenjun ruanwenjun added this to the 3.0.2 milestone Oct 1, 2022
@ruanwenjun ruanwenjun merged commit c87f6d8 into apache:dev Oct 1, 2022
@DarkAssassinator DarkAssassinator deleted the dev_yann_fix_across_timezone branch October 1, 2022 14:45
@zhongjiajie zhongjiajie added the bug Something isn't working label Oct 11, 2022
xdu-chenrj pushed a commit to xdu-chenrj/dolphinscheduler that referenced this pull request Oct 13, 2022
…apache#12239)

* fix DS support cross time zone, use timestamp replace date
@EricGao888 EricGao888 modified the milestones: 3.0.2, 3.2.0 Nov 7, 2022
fuchanghai pushed a commit to fuchanghai/dolphinscheduler that referenced this pull request Nov 16, 2022
…apache#12239)

* fix DS support cross time zone, use timestamp replace date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [Worker] DS do not support across time zones.
5 participants