-
Notifications
You must be signed in to change notification settings - Fork 751
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
[GOBBLIN-1920] Use db laundered timestamp for reminder event #3788
[GOBBLIN-1920] Use db laundered timestamp for reminder event #3788
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
only improvement to recommend is a comment explaining why this is important
prevJobProps.setProperty(ConfigurationKeys.SCHEDULER_PRESERVED_CONSENSUS_EVENT_TIME_MILLIS_KEY, | ||
String.valueOf(triggerEventTimeMillis)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably remove this from function parameter as well?
Codecov Report
@@ Coverage Diff @@
## master #3788 +/- ##
============================================
- Coverage 48.96% 47.33% -1.63%
- Complexity 3577 10955 +7378
============================================
Files 697 2152 +1455
Lines 28234 85089 +56855
Branches 3292 9452 +6160
============================================
+ Hits 13824 40278 +26454
- Misses 13007 41158 +28151
- Partials 1403 3653 +2250
... and 1463 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch! I was wondering if it even makes sense for us to provide eventTimeMillis
to the method signature of scheduleReminderForEvent
. Earlier we were using it to create JobDetail
, but now the only place we use it is for logging and the info that it conveys is the clock drift (which we might be okay not logging)... let me know what's your take?
I am leaving it in to catch that clock drift in time being. I suspect it's not the root of our problem but until we are reliably bug free keeping logs in. |
…3788) * Use db laundered timestamp for reminder event * Add more details to comment and remove extra param * remove unused param --------- Co-authored-by: Urmi Mustafi <umustafi@linkedin.com>
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
Description
When setting the reminder event we use the trigger time local to each host. Instead we want to use the timestamp from database to see consistency between hosts in case their clock drift is significant.
Tests
Commits