Skip to content

Conversation

@kfaraz
Copy link
Contributor

@kfaraz kfaraz commented Jan 7, 2026

Description

As the compaction supervisor evolves and becomes GA, it would be useful to have details of the queued and completed jobs in the supervisor report.

Changes

  • Add method CompactionScheduler.getJobsByStatus()
  • Add methods in CompactionJobQueue to getQueuedJobs() , getFullyCompactedIntervals(), getSkippedIntervals()
  • Fix computation in CompactionSnapshotBuilder to account for segments in partially compacted intervals
  • Simplify synchronization in OverlordCompactionScheduler
  • Remove unused message field from AutoCompactionSnapshot

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

@kfaraz kfaraz marked this pull request as draft January 7, 2026 17:35
@kfaraz
Copy link
Contributor Author

kfaraz commented Jan 7, 2026

Converted to draft as some parts of the patch need to be fixed up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant