[jira] [Commented] (AMBARI-24912) Infra Manager: scheduled job fails with dateparse exception
[ https://issues.apache.org/jira/browse/AMBARI-24912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16691653#comment-16691653 ] Hudson commented on AMBARI-24912: - SUCCESS: Integrated in Jenkins build Ambari-Infra-master-Commit #19 (See [https://builds.apache.org/job/Ambari-Infra-master-Commit/19/]) AMBARI-24912 - Infra Manager: scheduled job fails with dateparse (github: [https://gitbox.apache.org/repos/asf?p=ambari-infra.git&a=commit&h=c818680578cb686460d0a6fd398bb4b990cd47d8]) * (edit) ambari-infra-manager/src/main/java/org/apache/ambari/infra/job/archive/SolrQueryBuilder.java > Infra Manager: scheduled job fails with dateparse exception > --- > > Key: AMBARI-24912 > URL: https://issues.apache.org/jira/browse/AMBARI-24912 > Project: Ambari > Issue Type: Bug > Components: ambari-infra >Affects Versions: 2.8.0 >Reporter: Krisztian Kasa >Assignee: Krisztian Kasa >Priority: Major > Labels: pull-request-available > Fix For: 2.8.0 > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (AMBARI-24912) Infra Manager: scheduled job fails with dateparse exception
[ https://issues.apache.org/jira/browse/AMBARI-24912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16691652#comment-16691652 ] ASF GitHub Bot commented on AMBARI-24912: - kasakrisz closed pull request #16: AMBARI-24912 - Infra Manager: scheduled job fails with dateparse exception URL: https://github.com/apache/ambari-infra/pull/16 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/ambari-infra-manager/src/main/java/org/apache/ambari/infra/job/archive/SolrQueryBuilder.java b/ambari-infra-manager/src/main/java/org/apache/ambari/infra/job/archive/SolrQueryBuilder.java index f0563f95..40fa19b4 100644 --- a/ambari-infra-manager/src/main/java/org/apache/ambari/infra/job/archive/SolrQueryBuilder.java +++ b/ambari-infra-manager/src/main/java/org/apache/ambari/infra/job/archive/SolrQueryBuilder.java @@ -25,6 +25,7 @@ import java.time.Duration; import java.time.OffsetDateTime; +import java.time.ZoneOffset; import java.util.HashMap; import java.util.Map; @@ -33,7 +34,7 @@ public class SolrQueryBuilder { public static String computeEnd(String end, Duration ttl) { -return computeEnd(end, OffsetDateTime.now(), ttl); +return computeEnd(end, OffsetDateTime.now(ZoneOffset.UTC), ttl); } public static String computeEnd(String end, OffsetDateTime now, Duration ttl) { This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Infra Manager: scheduled job fails with dateparse exception > --- > > Key: AMBARI-24912 > URL: https://issues.apache.org/jira/browse/AMBARI-24912 > Project: Ambari > Issue Type: Bug > Components: ambari-infra >Affects Versions: 2.8.0 >Reporter: Krisztian Kasa >Assignee: Krisztian Kasa >Priority: Major > Labels: pull-request-available > Fix For: 2.8.0 > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (AMBARI-24912) Infra Manager: scheduled job fails with dateparse exception
[ https://issues.apache.org/jira/browse/AMBARI-24912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16689242#comment-16689242 ] ASF GitHub Bot commented on AMBARI-24912: - asfgit commented on issue #16: AMBARI-24912 - Infra Manager: scheduled job fails with dateparse exception URL: https://github.com/apache/ambari-infra/pull/16#issuecomment-439343977 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/Ambari-Infra-Github-PR-Builder/24/ Test PASSed. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Infra Manager: scheduled job fails with dateparse exception > --- > > Key: AMBARI-24912 > URL: https://issues.apache.org/jira/browse/AMBARI-24912 > Project: Ambari > Issue Type: Bug > Components: ambari-infra >Affects Versions: 2.8.0 >Reporter: Krisztian Kasa >Assignee: Krisztian Kasa >Priority: Major > Labels: pull-request-available > Fix For: 2.8.0 > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (AMBARI-24912) Infra Manager: scheduled job fails with dateparse exception
[ https://issues.apache.org/jira/browse/AMBARI-24912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16689241#comment-16689241 ] ASF GitHub Bot commented on AMBARI-24912: - kasakrisz opened a new pull request #16: AMBARI-24912 - Infra Manager: scheduled job fails with dateparse exception URL: https://github.com/apache/ambari-infra/pull/16 ## What changes were proposed in this pull request? Use UTC time zone when a scheduled archiving job launched to calculate the end of interval of archivable document from system time ## How was this patch tested? UTs ITs passed Manually: 1. Deploy ambari and a cluster: zookeeper, infra-solr, infra-manager, logsearch 2. Schedule an archiving job like archive_service_logs 3. wait until its first run 4. check for archived documents This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Infra Manager: scheduled job fails with dateparse exception > --- > > Key: AMBARI-24912 > URL: https://issues.apache.org/jira/browse/AMBARI-24912 > Project: Ambari > Issue Type: Bug > Components: ambari-infra >Affects Versions: 2.8.0 >Reporter: Krisztian Kasa >Assignee: Krisztian Kasa >Priority: Major > Labels: pull-request-available > Fix For: 2.8.0 > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)