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

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

> Maybe the rat task in our Gradle build should never run in parallel with 
> other rat tasks. Is there some Gradle annotation to enforce this?

I think the synchronization block is much simpler. Yes, you could try to 
enforce ordering of tasks (via mustRunBefore) but this has to be done manually 
- collect all tasks of a given name/type, then apply mustRunBefore to order 
them in a sequence. I don't think it's worth it though.

> I am a bit afraid that our rat task which uses ant's non threaded tasks has 
> the same problem.

Yes, it may be the case that it does. Hard to tell what's going on under the 
hood (if it uses the same classloader or different class loaders to load 
taskdefs). I've never seen it fail the way validateSourcePatterns failed; could 
be luck.

> 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
>             Fix For: 9.1
>
>
> {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