cpoerschke commented on a change in pull request #202:
URL: https://github.com/apache/solr/pull/202#discussion_r701247904
##########
File path:
solr/core/src/test/org/apache/solr/update/processor/TimeRoutedAliasUpdateProcessorTest.java
##########
@@ -713,6 +716,45 @@ public void testParse() {
TimeRoutedAlias.parseInstantFromCollectionName(alias, alias + TRA +
"2017-10-02"));
}
+ @Test
+ public void testMaxFutureMs() throws Exception {
+ final Long maxFutureMs = 100L * 24L * 60L * 60L * 1000L; // 100 DAYS
+
+ ZonedDateTime a = ZonedDateTime.now(ZoneId.from(ZoneOffset.UTC));
+ ZonedDateTime b = a.plusMonths(2);
+ ZonedDateTime c = a.plusYears(1);
+ DateTimeFormatter SOLR_DATE_TIME_FORMATTER =
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss'Z'").withZone(ZoneId.from(ZoneOffset.UTC));
Review comment:
```suggestion
DateTimeFormatter SOLR_DATE_TIME_FORMATTER =
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss'Z'",
Locale.ROOT).withZone(ZoneId.from(ZoneOffset.UTC));
```
or similar is what the CI feedback is probably saying; `./gradlew
:solr:core:forbiddenApisTest` to run it locally.
--
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]