-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-24898 Addendum to deal with Daylight Saving Time #2310
Conversation
Yeah, for special datetime such as 2020-08-20 11:52:41 and 2020-08-20 15:04:00, i think so, since there is a loop ensure all availble timezone are tested, but not sure if there are different calculation for other dates. |
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.
I think we could let someone in Bay Area to test if the UT is OK for them?
@@ -37,7 +38,8 @@ | |||
} | |||
} | |||
|
|||
private static Tick nextTick() { | |||
@VisibleForTesting | |||
protected static Tick nextTick() { |
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.
Just remove the protected qualifier? We just want it to be package private right?
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.
Will fix later, thanks.
@@ -52,7 +54,8 @@ private static void moveToNextHour(Calendar calendar) { | |||
calendar.set(Calendar.MILLISECOND, 0); | |||
} | |||
|
|||
private static volatile Tick tick = nextTick(); | |||
@VisibleForTesting | |||
protected static volatile Tick tick = nextTick(); |
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.
Ditto.
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.
Will fix later, thanks.
Yeah, or we can change the timezone of os. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
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.
+1
No description provided.