Description
With oak-run indexing, we have a lot of warnings, with stack trace each time, that look like this:
07:23:34.803 [main] WARN o.a.j.o.p.i.l.LuceneDocumentMaker - [...] Ignoring ordered property. Could not convert property ... of type STRING to type DATE for path ... java.lang.IllegalArgumentException: Not a date string: 2025-05-06T15:27:36 at org.apache.jackrabbit.oak.plugins.value.Conversions$Converter.toCalendar(Conversions.java:100) at org.apache.jackrabbit.oak.plugins.value.Conversions$Converter.toDate(Conversions.java:112)
We already have a mechanism to silence (only log once every 10 seconds) similar messages. So we can extend that mechanism to also cover the other cases.
I checked and found 3 cases:
- IllegalArgumentException: Not a date string
- RuntimeException: Unable to parse the provided date field
- NumberFormatException: For input string
This issue is not about the performance impact, but to reduce the amount of unnecessary logging.