OpenSearch/modules
Nik Everett 25119a7e78 Harden painless test against "fun" caching (#24077)
The JVM caches `Integer` objects. This is known. A test in Painless
was relying on the JVM not caching the particular integer `1000`.
It turns out that when you provide `-XX:+AggressiveOpts` the JVM
*does* cache `1000`, causing the test to fail when that is
specified.

This replaces `1000` with a randomly selected integer that we test
to make sure *isn't* cached by the JVM. *Hopefully* this test is
good enough. It relies on the caching not changing in between when
we check that the value isn't cached and when we run the painless
code. The cache now is a simple array but there is nothing
preventing it from changing. If it does change in a way that thwarts
this test then the test fail fail again. At least when that happens
the next person can see the comment about how it is important
that the integer isn't cached and can follow that line of inquiry.

Closes #24041
2017-04-17 13:44:05 -04:00
..
aggs-matrix-stats [TEST] improve yaml test sections parsing (#23407) 2017-03-02 12:43:20 +01:00
ingest-common Rename random ASCII helper methods 2017-04-04 11:04:18 -04:00
lang-expression Move getProperty method out of MultiBucketsAggregation.Bucket interface (#23988) 2017-04-10 13:35:01 +02:00
lang-mustache Rename random ASCII helper methods 2017-04-04 11:04:18 -04:00
lang-painless Harden painless test against "fun" caching (#24077) 2017-04-17 13:44:05 -04:00
percolator Removes version 2.x constants from Version (#24011) 2017-04-11 08:31:22 +01:00
reindex Reject empty IDs 2017-04-15 10:36:03 -04:00
repository-url Rename random ASCII helper methods 2017-04-04 11:04:18 -04:00
transport-netty4 Closing a ReleasableBytesStreamOutput closes the underlying BigArray (#23941) 2017-04-14 10:50:31 -04:00
build.gradle Build: Change `gradle run` to use zip distribution (#21001) 2016-10-18 11:48:58 -07:00