You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2020/07/31 13:29:12 UTC

[GitHub] [hive] belugabehr commented on a change in pull request #1334: HIVE-21611: Date.getTime() can be changed to System.currentTimeMillis()

belugabehr commented on a change in pull request #1334:
URL: https://github.com/apache/hive/pull/1334#discussion_r463610831



##########
File path: hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/HDFSCleanup.java
##########
@@ -113,8 +112,7 @@ public void run() {
         }
 
         long sleepMillis = (long) (Math.random() * interval);
-        LOG.info("Next execution: " + new Date(new Date().getTime()
-                             + sleepMillis));
+        LOG.info("Next execution: " + (System.currentTimeMillis() + sleepMillis));

Review comment:
       This changes the behavior because it previously would print a DATE, now it's just printing a number.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org