Although FilePath.validateAntFileMask is typically bounded to check at most 10000 files before giving up and announcing that it cannot find a match, it turns out that DirectoryScanner collects the names of non-matches in filesNotIncluded and dirsNotIncluded in the meantime. In a big workspace, this can cause the JVM (usually a slave agent) to allocate gigabytes of heap, eventually causing the slave to become overwhelmed and crash.
|Field||Original Value||New Value|
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Remote Link||This issue links to "Apache bug #57253 (Web Link)" [ 11918 ]|
|Status||In Progress [ 3 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Labels||lts-candidate performance||1.580.3-fixed performance|
|Workflow||JNJira [ 159737 ]||JNJira + In-Review [ 196184 ]|