Skip to content

Commit 9d6b75e

Browse files
authored
Remove joda date deprecation message on startup in 6.8 (#45484)
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
1 parent b9a5b1b commit 9d6b75e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/license/LicenseService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public class LicenseService extends AbstractLifecycleComponent implements Cluste
114114

115115
public static final String LICENSE_JOB = "licenseJob";
116116

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

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

0 commit comments

Comments
 (0)