[ 
https://issues.apache.org/jira/browse/LUCENE-10419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17491649#comment-17491649
 ] 

Dawid Weiss commented on LUCENE-10419:
--------------------------------------

I can reproduce this elsewhere by magnifying the repetitions:
{code:java}
diff --git a/gradle/validation/validate-source-patterns.gradle 
b/gradle/validation/validate-source-patterns.gradle
index b4c1f899535..775fb448711 100644
--- a/gradle/validation/validate-source-patterns.gradle
+++ b/gradle/validation/validate-source-patterns.gradle
@@ -173,6 +173,10 @@ class ValidateSourcePatternsTask extends DefaultTask {
     def validSPINameJavadocTag = ~$/(?s)\s*\*\s*@lucene\.spi\s+\{@value 
#NAME\}/$;     def isLicense = { matcher, ratDocument ->
+for (int i = 0; i < 200; i++) {
+      licenseMatcher.reset()
+      lineSplitter.split(matcher.group(1)).any { 
licenseMatcher.match(ratDocument, it) }
+}
       licenseMatcher.reset()
       return lineSplitter.split(matcher.group(1)).any { 
licenseMatcher.match(ratDocument, it) }
     } {code}

> Identify occasional validateSourcePatterns error on CI servers
> --------------------------------------------------------------
>
>                 Key: LUCENE-10419
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10419
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>            Priority: Trivial
>
> {code}
> What went wrong: Execution failed for task 
> ':lucene:analysis:icu:validateSourcePatterns'. > start 1, end 0, length 0
> {code}
>  
> This annoys me. It's a message from stringbuilder.substring somewhere - let's 
> get the stack of that first and see where the bug is.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to