druid/extensions-core
zachjsh 1d6df48145
Warn if cache size of lookup is beyond max size (#11863)
Enhanced the ExtractionNamespace interface in lookups-cached-global core extension with the ability to set a maxHeapPercentage for the cache of the respective namespace. The reason for adding this functionality, is make it easier to detect when a lookup table grows to a size that the underlying service cannot handle, because it does not have enough memory. The default value of maxHeap for the interface is -1, which indicates that no maxHeapPercentage has been set. For the JdbcExtractionNamespace and UriExtractionNamespace implementations, the default value is null, which will cause the respective service that the lookup is loaded in, to warn when its cache is beyond mxHeapPercentage of the service's configured max heap size. If a positive non-null value is set for the namespace's maxHeapPercentage config, this value will be honored for all services that the respective lookup is loaded onto, and consequently log warning messages when the cache of the respective lookup grows beyond this respective percentage of the services configured max heap size. Warnings are logged every time that either Uri based or Jdbc based lookups are regenerated, if the maxHeapPercentage constraint is violated. No other implementations will log warnings at this time. No error is thrown when the size exceeds the maxHeapPercentage at this time, as doing so could break functionality for existing users. Previously the JdbcCacheGenerator generated its cache by materializing all rows of the underling table in memory at once; this made it difficult to log warning messages in the case that the results from the jdbc query were very large and caused the service to run out of memory. To help with this, this pr makes it so that the jdbc query results are instead streamed through an iterator.
2021-11-03 21:32:22 -04:00
..
avro-extensions Support for hadoop 3 via maven profiles (#11794) 2021-10-30 22:46:24 +05:30
azure-extensions bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
datasketches Remove OffheapIncrementalIndex and clarify aggregator thread-safety needs. (#11124) 2021-10-26 08:05:56 -07:00
druid-aws-rds-extensions bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
druid-basic-security refactor sql authorization to get resource type from schema, resource type to be string (#11692) 2021-09-17 09:53:25 -07:00
druid-bloom-filter Add druid.sql.approxCountDistinct.function property. (#11181) 2021-10-25 12:16:21 -07:00
druid-kerberos Support for hadoop 3 via maven profiles (#11794) 2021-10-30 22:46:24 +05:30
druid-pac4j bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
druid-ranger-security Support for hadoop 3 via maven profiles (#11794) 2021-10-30 22:46:24 +05:30
ec2-extensions bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
google-extensions bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
hdfs-storage Support for hadoop 3 via maven profiles (#11794) 2021-10-30 22:46:24 +05:30
histogram add output type information to ExpressionPostAggregator (#11818) 2021-10-22 13:52:51 -07:00
kafka-extraction-namespace Update Apache Kafka client libraries to 3.0.0 (#11735) 2021-10-05 10:23:19 -07:00
kafka-indexing-service Kafka Input Format for headers, key and payload parsing (#11630) 2021-10-07 08:56:27 -07:00
kinesis-indexing-service bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
kubernetes-extensions Remove CloseQuietly and migrate its usages to other methods. (#10247) 2021-10-23 17:03:21 -07:00
lookups-cached-global Warn if cache size of lookup is beyond max size (#11863) 2021-11-03 21:32:22 -04:00
lookups-cached-single bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
mysql-metadata-storage bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
orc-extensions Support for hadoop 3 via maven profiles (#11794) 2021-10-30 22:46:24 +05:30
parquet-extensions Support for hadoop 3 via maven profiles (#11794) 2021-10-30 22:46:24 +05:30
postgresql-metadata-storage bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
protobuf-extensions bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
s3-extensions bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
simple-client-sslcontext bump version to 0.23.0-SNAPSHOT (#11670) 2021-09-08 15:56:04 -07:00
stats add output type information to ExpressionPostAggregator (#11818) 2021-10-22 13:52:51 -07:00
testing-tools better types (#11713) 2021-10-19 01:47:25 -07:00