gobblin
gobblin copied to clipboard
[GOBBLIN-1544] Fix edge case when current hour == datepartition hour
Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
- [ ] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-1544] My Gobblin PR"
- https://issues.apache.org/jira/browse/GOBBLIN-1544
Description
- [ ] Here are some details about my PR, including screenshots (if applicable): Addresses case where cw=2pm, dp =4pm, current hour=4pm With current logic, audit call will be made so we need to check hour(dp) < hour(now)
Tests
- [ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Commits
- [ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
- Subject is separated from body by a blank line
- Subject is limited to 50 characters
- Subject does not end with a period
- Subject uses the imperative mood ("add", not "adding")
- Body wraps at 72 characters
- Body explains "what" and "why", not "how"
Codecov Report
Merging #3396 (1835518) into master (47707df) will increase coverage by
0.00%. The diff coverage is50.00%.
@@ Coverage Diff @@
## master #3396 +/- ##
=========================================
Coverage 46.54% 46.54%
- Complexity 10243 10247 +4
=========================================
Files 2062 2062
Lines 80413 80415 +2
Branches 8981 8982 +1
=========================================
+ Hits 37429 37430 +1
- Misses 39516 39517 +1
Partials 3468 3468
| Impacted Files | Coverage Δ | |
|---|---|---|
| .../gobblin/iceberg/writer/IcebergMetadataWriter.java | 72.11% <50.00%> (-0.09%) |
:arrow_down: |
| .../org/apache/gobblin/async/AsyncDataDispatcher.java | 79.66% <0.00%> (-8.48%) |
:arrow_down: |
| ...gobblin/service/modules/core/GitConfigMonitor.java | 81.35% <0.00%> (-1.70%) |
:arrow_down: |
| .../modules/scheduler/GobblinServiceJobScheduler.java | 65.17% <0.00%> (+1.49%) |
:arrow_up: |
| ...lin/restli/throttling/ZookeeperLeaderElection.java | 72.22% <0.00%> (+2.22%) |
:arrow_up: |
| ...t/version/TimestampedDatasetStateStoreVersion.java | 33.33% <0.00%> (+5.55%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 47707df...1835518. Read the comment docs.