Commit graph

6 commits

Author SHA1 Message Date
Lorenzo Dematté
7bd5c69c8c
Update ASM 9.7 -> 9.7.1 to support JDK 24 (#118094) 2024-12-06 08:16:46 +01:00
Rene Groeschke
f6ac6e1c3b
[Build] Remove deprecated BuildParams (#116984) 2024-11-22 16:30:57 +01:00
Rene Groeschke
13c8aaeffa
[Gradle] Remove static use of BuildParams (#115122)
Static fields dont do well in Gradle with configuration cache enabled.

- Use buildParams extension in build scripts
- Keep BuildParams.ci for now for easy serverless migration
-  Tweak testing doc
2024-11-15 17:58:57 +01:00
Mark Vieira
a59c182f9f
Add AGPLv3 as a supported license 2024-09-13 15:29:46 -07:00
Ryan Ernst
4ed54ce558
Use bundled jdk version for immutable collections patch (#111162)
When building our patch for immutable collections we must find a jdk to
use for the build. If runtime java is set, this is clear. But if there
is no runtime java, we intend to fallback to the bundled jdk version.
Yet the runtime version in this case does not itself fallback to the
bundled jdk. This commit changes the immutable collections patch build
to explicitly use the bundled jdk version.
2024-07-22 11:06:27 -07:00
Ryan Ernst
21ffdac4a7
Patch ImmutableCollections for tests (#109271)
ImmutableCollections uses a seed, set early during JVM startup, which
affects the iteration order of collections. Although we do not want to
rely on the iteration order of Map and Set collections, bugs do
sometimes occur. In order to reproduce those bugs to fix them, it is
important the test seed for Elasticsearch matches the seed used in
ImmutableCollections.

Unfortunately ImmutableCollections is internal to the JDK, and the seed
used is private and final. This commit works around these limitations by
creating a patched version of ImmutableCollections which allows access
to the seed member. ESTestCase is then able to reflectively set the seed
at runtime based on the Elasticsearch seed.

Note that this only affects tests. ImmutableCollections remains is
unchanged for production code.

relates #94946
2024-06-05 11:13:55 -07:00