gobblin icon indicating copy to clipboard operation
gobblin copied to clipboard

[GOBBLIN-1544] Fix edge case when current hour == datepartition hour

Open vikrambohra opened this issue 5 years ago • 1 comments

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":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

vikrambohra avatar Sep 14 '21 15:09 vikrambohra

Codecov Report

Merging #3396 (1835518) into master (47707df) will increase coverage by 0.00%. The diff coverage is 50.00%.

Impacted file tree graph

@@            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 data Powered by Codecov. Last update 47707df...1835518. Read the comment docs.

codecov-commenter avatar Sep 14 '21 16:09 codecov-commenter