feat: Bounded Stream Supervisor (#19372)

* Initial implementation for BoundedStreamConfig

* Implement isOffsetAtOrBeyond for Rabbit and Kinesis

* Unit test coverage

* Fix BoundedStreamConfigTest

* Remove unused import

* Remove unneeded tests

* Unit test fix

* Fix import and add coverage for RabbitStreamSupervisor

* Test coverage for validateBoundedStreamConfig

* Re-initialize partition group and reset state after reset

* Handle edge case where startOffset equals endOffset

* Compare Kinesis sequence numbers using BigInteger

* Remove stale test case

* Remove redundant validation of boundedStreamConfig

* Throw DruidException with ADMIN persona for BoundedStreamConfig

* Clean up unused Logger

* javadoc and comment cleanup for isBoundedWorkComplete

* Add embedded test for bounded ingestion

* Add boundedStreamConfig to SeekableStreamDataSourceMetadata for metadata validation

* Revert pendingCompletionGroups check

* Unit test fix

* embedded-test for metadata mismatch

* Remove unused var

* Unit test fix

* Add boundedStreamConfig documentation

* Fix spellcheck

* Increase code coverage

* Increase coverage for BoundedStreamConfig

* Remove unnecessary test

* Simplify completion check in createNewTasks

* Remove unused function

* Unit test bounded supervisor completion

* Improve coverage on RabbitStreamSupervisor

* Unit test coverage

* Unit test for IllegalArgumentException for KafkaSupervisor

* Check if end offsets are exclusive for bounded work completion

* Increase branch coverage

* Increase branch coverage

* Unit test coverage

* Fix import

* Remove use of deprecated function

* Revert to deprecated function since not initialized in mock object

* Fix merge conflict

* Detect metadata mismatch when committed offset > bounded config end

* Clean up redundant tests in BoundedStreamConfigTest and use EqualsVerifier

* Compare Kinesis Sequence numbers using built in comparison

* Clean up docs based on review comments

* Early return before convert for hasTaskGroupReachedBoundedEnd

* Resolve merge conflicts

* Fix KinesisSupervisorTest

* Update KinesisSupervisorTest.java

* Cover case where start > end
47 files changed
tree: d2062b630966c7ff8adeb1daef3ae512a3143418
  1. .github/
  2. .idea/
  3. benchmarks/
  4. cloud/
  5. codestyle/
  6. dev/
  7. distribution/
  8. docs/
  9. embedded-tests/
  10. examples/
  11. extensions-contrib/
  12. extensions-core/
  13. hooks/
  14. indexing-service/
  15. licenses/
  16. multi-stage-query/
  17. processing/
  18. publications/
  19. quidem-ut/
  20. server/
  21. services/
  22. sql/
  23. web-console/
  24. website/
  25. .asf.yaml
  26. .backportrc.json
  27. .codecov.yml
  28. .dockerignore
  29. .gitignore
  30. .lgtm.yml
  31. AGENTS.md
  32. CONTRIBUTING.md
  33. doap_Druid.rdf
  34. LABELS
  35. LICENSE
  36. licenses.yaml
  37. NOTICE
  38. owasp-dependency-check-suppressions.xml
  39. pom.xml
  40. README.md
  41. README.template
  42. rewrite.yml
  43. upload.sh
README.md

Coverage Status Docker Helm

WorkflowStatus
โš™๏ธ CodeQL Configcodeql-config
๐Ÿ” CodeQLcodeql
๐Ÿ•’ Cron Job ITScron-job-its
๐Ÿท๏ธ Labelerlabeler
๐Ÿ› ๏ธ Static Checksstatic-checks
๐Ÿงช Unit and Integration Tests Unifiedunit-and-integration-tests-unified

Website Twitter Download Get Started Documentation Community Build Contribute License


Apache Druid

Druid is a high performance real-time analytics database. Druid's main value add is to reduce time to insight and action.

Druid is designed for workflows where fast queries and ingest really matter. Druid excels at powering UIs, running operational (ad-hoc) queries, or handling high concurrency. Consider Druid as an open source alternative to data warehouses for a variety of use cases. The design documentation explains the key concepts.

Getting started

You can get started with Druid with our local or Docker quickstart. For Kubernetes deployments, the druid-operator is maintained in a separate repository.

Druid provides a rich set of APIs (via HTTP and JDBC) for loading, managing, and querying your data. You can also interact with Druid via the built-in web console (shown below).

Load data

data loader Kafka

Load streaming and batch data using a point-and-click wizard to guide you through ingestion setup. Monitor one off tasks and ingestion supervisors.

Manage the cluster

management

Manage your cluster with ease. Get a view of your datasources, segments, ingestion tasks, and services from one convenient location. All powered by SQL systems tables, allowing you to see the underlying query for each view.

Issue queries

query view combo

Use the built-in query workbench to prototype DruidSQL and native queries or connect one of the many tools that help you make the most out of Druid.

Documentation

See the latest documentation for the documentation for the current official release. If you need information on a previous release, you can browse previous releases documentation.

Make documentation and tutorials updates in /docs using Markdown or extended Markdown (MDX). Then, open a pull request.

To build the site locally, you need Node 18 or higher and to install Docusaurus 3 with npm|yarn install in the website directory. Then you can run npm|yarn start to launch a local build of the docs.

If you're looking to update non-doc pages like Use Cases, those files are in the druid-website-src repo.

For more information, see the README in the ./website directory.

Community

Visit the official project community page to read about getting involved in contributing to Apache Druid, and how we help one another use and operate Druid.

  • Druid users can find help in the druid-user mailing list on Google Groups, and have more technical conversations in #troubleshooting on Slack.
  • Druid development discussions take place in the druid-dev mailing list (dev@druid.apache.org). Subscribe by emailing dev-subscribe@druid.apache.org. For live conversations, join the #dev channel on Slack.

Check out the official community page for details of how to join the community Slack channels.

Find articles written by community members and a calendar of upcoming events on the project site - contribute your own events and articles by submitting a PR in the apache/druid-website-src repository.

Building from source

Please note that JDK 21 or JDK 25 is required to build Druid.

See the latest build guide for instructions on building Apache Druid from source.

Contributing

Please follow the community guidelines for contributing.

For instructions on setting up IntelliJ dev/intellij-setup.md

License

Apache License, Version 2.0