-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Add new compaction config and status APIs served by the Overlord #17834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a317db0
Add API to get cluster compaction config
kfaraz 006ece9
Return non-null compaction snapshot from scheduler
kfaraz 295deab
Fix test
kfaraz b7a37aa
Use supervisors with an IT
kfaraz d9efc7b
Add delay in IT
kfaraz 872bfb6
Add coverage for FixedIntervalOrderPolicy
kfaraz 179f361
Add some new APIs, allow for smooth transition
kfaraz 406f0c1
Add more compaction APIs
kfaraz b86d286
Re-organize compaction APIs
kfaraz 0e2d40c
Remove unused methods
kfaraz 8ba7720
Cleanup
kfaraz a912201
Fix APIs and dependencies
kfaraz eba67d6
Add tests, handle filters
kfaraz 07f45b2
Fix /status/datasources API
kfaraz 7e33720
Fix up the ITs
kfaraz 43ea46f
Merge branch 'master' of github.com:apache/druid into fix_compaction_…
kfaraz a127f46
Fix and rerun ITs
kfaraz c78595c
Use new APIs in ITs
kfaraz 3cc2efc
Yet another attempt at the fix
kfaraz baf9fad
Merge branch 'master' of github.com:apache/druid into fix_compaction_…
kfaraz 16cd7f4
Fix compilation after upstream changes
kfaraz ca81071
Add docs for new compaction APIs
kfaraz 6997889
Minor typo
kfaraz 05d310c
Add check for MSQ engine
kfaraz 0d7d9e7
Remove unused import
kfaraz bf10f7e
Merge branch 'master' of github.com:apache/druid into fix_compaction_…
kfaraz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...rc/main/java/org/apache/druid/indexing/overlord/http/CompactionConfigHistoryResponse.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
|
|
||
| package org.apache.druid.indexing.overlord.http; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import org.apache.druid.server.coordinator.DataSourceCompactionConfigAuditEntry; | ||
|
|
||
| import java.util.List; | ||
| import java.util.Objects; | ||
|
|
||
| public class CompactionConfigHistoryResponse | ||
|
adarshsanjeev marked this conversation as resolved.
|
||
| { | ||
| private final List<DataSourceCompactionConfigAuditEntry> entries; | ||
|
|
||
| public CompactionConfigHistoryResponse( | ||
| @JsonProperty("entries") List<DataSourceCompactionConfigAuditEntry> entries | ||
| ) | ||
| { | ||
| this.entries = entries; | ||
| } | ||
|
|
||
| @JsonProperty | ||
| public List<DataSourceCompactionConfigAuditEntry> getEntries() | ||
| { | ||
| return entries; | ||
| } | ||
|
|
||
| @Override | ||
| public boolean equals(Object o) | ||
| { | ||
| if (this == o) { | ||
| return true; | ||
| } | ||
| if (o == null || getClass() != o.getClass()) { | ||
| return false; | ||
| } | ||
| CompactionConfigHistoryResponse that = (CompactionConfigHistoryResponse) o; | ||
| return Objects.equals(entries, that.entries); | ||
| } | ||
|
|
||
| @Override | ||
| public int hashCode() | ||
| { | ||
| return Objects.hashCode(entries); | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.