-
Notifications
You must be signed in to change notification settings - Fork 9.2k
YARN-11116. Migrate Times util from SimpleDateFormat to thread-safe D… #4242
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
Conversation
…ateTimeFormatter class
|
🎊 +1 overall
This message was automatically generated. |
...ject/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestTimes.java
Show resolved
Hide resolved
aajisaka
left a comment
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.
Thank you @jteagles for migrating to Java 8 Date/Time API. I'm +1 if my comment is addressed.
…ateTimeFormatter class (#4242) Co-authored-by: Jonathan Eagles <[email protected]> Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit d4a91bd)
…ateTimeFormatter class (#4242) Co-authored-by: Jonathan Eagles <[email protected]> Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit d4a91bd)
|
@aajisaka, I was hoping to backport this to earlier lines. Do you see any problem with me backporting to 2.10.x? Perhaps that is too far back. I was taking a look at https://cwiki.apache.org/confluence/display/HADOOP/GitHub+Integration#GitHubIntegration-MergingaPR(forcommitters) to catch myself up with the updated github process. Before, I would just cherry-pick at this now that it is merged to trunk, but don't see the exact steps to follow. |
|
@jteagles, I cannot backport this to 2.10.x because 2.10.x still supports JDK 7.
Just cherry-picking the trunk commit to the branches is fine. Thanks. |
|
@aajisaka, good catch on jdk 7. Thanks so much on this jira. |
…ateTimeFormatter class (apache#4242) Co-authored-by: Jonathan Eagles <[email protected]> Signed-off-by: Akira Ajisaka <[email protected]>
…ateTimeFormatter class
Description of PR
Upgrading to the recommended thread safe java.time libraries for formatting and parsing with a little better performance
How was this patch tested?
Attached a performance test patch to the jira and added unit test to ensure compatible behavior
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?