jihoonson opened a new pull request #10307:
URL: https://github.com/apache/druid/pull/10307
### Description
This PR allows using all supported partitioning schemes in auto compaction.
In addition to that, all tuningConfigs in `ParallelIndexTuningConfig` are now
available for auto compaction except for `forceGuaranteedRollup` and
configurations related to parse exceptions. `forceGuaranteedRollup` can be
computed based on the type of `partitionsSpec` and the configurations related
to parse exceptions are not supported by parallel index task yet. These changes
can be found in `ClientCompactionTaskQueryTuningConfig`.
`NewestSegmentFirstIterator` is now modified to allow all partitioning
schemes. Before, it always triggered compactions if it finds a segment
compacted with non-dynamic partitioning.
`ParallelIndexSupervisorTask` is also now able to annotate the
`lastCompactionState` properly with non-dynamic partitioning. Before, the
`lastCompactionState` wasn't stored properly when it runs with multiple
subtasks for hash/range partitioning.
The web console change is not fixed in this PR.
<hr>
This PR has:
- [x] been self-reviewed.
- [ ] using the [concurrency
checklist](https://github.com/apache/druid/blob/master/dev/code-review/concurrency.md)
(Remove this item if the PR doesn't have any relation to concurrency.)
- [ ] added documentation for new or modified features or behaviors.
- [ ] 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](https://github.com/apache/druid/blob/master/licenses.yaml)
- [ ] added comments explaining the "why" and the intent of the code
wherever would not be obvious for an unfamiliar reader.
- [x] added unit tests or modified existing tests to cover new code paths,
ensuring the threshold for [code
coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md)
is met.
- [ ] added integration tests.
- [x] been tested in a test Druid cluster.
<hr>
##### Key changed/added classes in this PR
* `ClientCompactionTaskQueryTuningConfig`
* `NewestSegmentFirstIterator`
* `ParallelIndexSupervisorTask`
* `TransactionalSegmentPublisher`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]