Skip to content

Commit

Permalink
Remove joda date deprecation message on startup in 6.8 (#45484)
Browse files Browse the repository at this point in the history
When starting up Elasticsearch 6.8, there is always a deprecation
message logged like this

[WARN ][o.e.d.c.j.Joda           ] [A2Wr_Jx] 'y' year should be replaced with 'u'. Use 'y' for year-of-era. Prefix your date format with '8' to use the new specifier.

tracing this down, result in the LicenseService being the culprit using
an deprecated date. This switches to a java time based date.

Closes #45483
  • Loading branch information
spinscale authored Aug 13, 2019
1 parent b9a5b1b commit 9d6b75e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class LicenseService extends AbstractLifecycleComponent implements Cluste

public static final String LICENSE_JOB = "licenseJob";

private static final DateFormatter DATE_FORMATTER = DateFormatter.forPattern("EEEE, MMMMM dd, yyyy");
private static final DateFormatter DATE_FORMATTER = DateFormatter.forPattern("8EEEE, MMMMM dd, yyyy");

private static final String ACKNOWLEDGEMENT_HEADER = "This license update requires acknowledgement. To acknowledge the license, " +
"please read the following messages and update the license again, this time with the \"acknowledge=true\" parameter:";
Expand Down

0 comments on commit 9d6b75e

Please sign in to comment.