[
https://issues.apache.org/jira/browse/OAK-11025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17874249#comment-17874249
]
Julian Reschke commented on OAK-11025:
--------------------------------------
Potential fix:
{noformat}
diff --git a/oak-commons/pom.xml b/oak-commons/pom.xml
index e0b1cbc186..14d3e8e929 100644
--- a/oak-commons/pom.xml
+++ b/oak-commons/pom.xml
@@ -51,6 +51,7 @@
org.apache.jackrabbit.oak.commons.concurrent,
org.apache.jackrabbit.oak.commons.io,
org.apache.jackrabbit.oak.commons.json,
+ org.apache.jackrabbit.oak.commons.log,
org.apache.jackrabbit.oak.commons.sort,
org.apache.jackrabbit.oak.commons.properties
</Export-Package>
{noformat}
That said, I'll revert the change for now, in order to unblock builds.
> Silence more warnings for ordered properties
> --------------------------------------------
>
> Key: OAK-11025
> URL: https://issues.apache.org/jira/browse/OAK-11025
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: indexing
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Priority: Major
>
> With oak-run indexing, we have a lot of warnings, with stack trace each time,
> that look like this:
> {noformat}
> 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)
> {noformat}
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)