druid/extensions-core
Gian Merlino 4631cff2a9
Free ByteBuffers in tests and fix some bugs. (#12521)
* Ensure ByteBuffers allocated in tests get freed.

Many tests had problems where a direct ByteBuffer would be allocated
and then not freed. This is bad because it causes flaky tests.

To fix this:

1) Add ByteBufferUtils.allocateDirect(size), which returns a ResourceHolder.
   This makes it easy to free the direct buffer. Currently, it's only used
   in tests, because production code seems OK.

2) Update all usages of ByteBuffer.allocateDirect (off-heap) in tests either
   to ByteBuffer.allocate (on-heap, which are garbaged collected), or to
   ByteBufferUtils.allocateDirect (wherever it seemed like there was a good
   reason for the buffer to be off-heap). Make sure to close all direct
   holders when done.

* Changes based on CI results.

* A different approach.

* Roll back BitmapOperationTest stuff.

* Try additional surefire memory.

* Revert "Roll back BitmapOperationTest stuff."

This reverts commit 49f846d9e3.

* Add TestBufferPool.

* Revert Xmx change in tests.

* Better behaved NestedQueryPushDownTest. Exit tests on OOME.

* Fix TestBufferPool.

* Remove T1C from ARM tests.

* Somewhat safer.

* Fix tests.

* Fix style stuff.

* Additional debugging.

* Reset null / expr configs better.

* ExpressionLambdaAggregatorFactory thread-safety.

* Alter forkNode to try to get better info when a JVM crashes.

* Fix buffer retention in ExpressionLambdaAggregatorFactory.

* Remove unused import.
2022-05-19 07:42:29 -07:00
..
avro-extensions Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
azure-extensions Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
datasketches Use datasketches version 3.2.0 (#12509) 2022-05-13 11:28:15 +05:30
druid-aws-rds-extensions Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
druid-basic-security Improve build performance of modules (#12486) 2022-05-01 22:43:11 +08:00
druid-bloom-filter Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
druid-kerberos Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
druid-pac4j Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
druid-ranger-security Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
ec2-extensions Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
google-extensions Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
hdfs-storage Add authentication call before cleaning up intermediate files in hadoop ingestions (#12030) 2022-05-02 08:40:44 -05:00
histogram Free ByteBuffers in tests and fix some bugs. (#12521) 2022-05-19 07:42:29 -07:00
kafka-extraction-namespace Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
kafka-indexing-service Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
kinesis-indexing-service Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
kubernetes-extensions Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
lookups-cached-global Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
lookups-cached-single Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
mysql-metadata-storage Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
orc-extensions Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
parquet-extensions Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
postgresql-metadata-storage Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
protobuf-extensions Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
s3-extensions Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
simple-client-sslcontext Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
stats Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30
testing-tools Bump up the versions (#12480) 2022-04-27 14:28:20 +05:30