deniskuzZ commented on code in PR #6215:
URL: https://github.com/apache/hive/pull/6215#discussion_r2566250068


##########
metastore/src/java/org/apache/hadoop/hive/metastore/HiveProtoEventsCleanerTask.java:
##########
@@ -95,9 +94,11 @@ public void run() {
    * Compute the expired date partition, using the underlying clock in UTC 
time.
    */
   private static void computeExpiredDatePtn(long ttl) {
+    LocalDate expiredDate = LocalDate.ofInstant(
+        Instant.now().minusMillis(ttl),
+        ZoneOffset.UTC
+    );
     // Use UTC date to ensure reader date is same on all timezones.
-    LocalDate expiredDate

Review Comment:
   removes yarn dependency in HMS



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to