Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-11025

Silence more warnings for ordered properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.70.0
    • indexing
    • None

    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.

      Attachments

        Activity

          People

            thomasm Thomas Mueller
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: