-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Support for bootstrap segments #16609
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
abhishekrb19
merged 28 commits into
apache:master
from
abhishekrb19:bootstrap_segments_load_api
Jun 24, 2024
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
f57cf70
Initial support for bootstrap segments.
abhishekrb19 a363511
Fail open by default if there are any errors talking to the coordinator.
abhishekrb19 97e9734
Add test for failure scenario and cleanup logs.
abhishekrb19 a4ed4b1
Cleanup and add debug log
abhishekrb19 8ec621a
Merge branch 'master' into bootstrap_segments_load_api
abhishekrb19 7459a8a
Assert the events so we know the list exactly.
abhishekrb19 f0b874a
Revert RunRules test.
abhishekrb19 d2a1817
Revert RunRulesTest too.
abhishekrb19 e10565d
Merge branch 'master' into bootstrap_segments_load_api
abhishekrb19 6a85f99
Remove debug info.
abhishekrb19 a8316da
Make the API POST and update log.
abhishekrb19 cbd4c4e
Fix up UTs.
abhishekrb19 9086f88
Throw 503 from MetadataResource; clean up exception handling and Drui…
abhishekrb19 e090da9
Remove unused logger, add verification of metrics and docs.
abhishekrb19 a88f6f6
Merge branch 'master' into bootstrap_segments_load_api
abhishekrb19 e8e2a21
Update error message
abhishekrb19 05dab3a
Update server/src/main/java/org/apache/druid/server/coordination/Segm…
abhishekrb19 98e2fa6
Apply suggestions from code review
abhishekrb19 3a26f0f
Adjust test metric expectations with the rename.
abhishekrb19 860d813
Add BootstrapSegmentResponse container in the response for future ext…
abhishekrb19 db1614b
Merge branch 'master' into bootstrap_segments_load_api
abhishekrb19 cf525fa
Rename to BootstrapSegmentsInfo for internal consistency.
abhishekrb19 04793b6
Remove unused log.
abhishekrb19 b8680d8
Use a member variable for broadcast segments instead of segmentAssigner.
abhishekrb19 01b81d8
Minor cleanup
abhishekrb19 7bcf303
Merge branch 'master' into bootstrap_segments_load_api
abhishekrb19 a6ad9fe
Add test for loadable bootstrap segments and clarify comment.
abhishekrb19 43b8702
Review suggestions.
abhishekrb19 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
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
39 changes: 39 additions & 0 deletions
39
server/src/main/java/org/apache/druid/client/BootstrapSegmentsResponse.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,39 @@ | ||
| /* | ||
| * 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.client; | ||
|
|
||
| import org.apache.druid.java.util.common.parsers.CloseableIterator; | ||
| import org.apache.druid.timeline.DataSegment; | ||
|
|
||
| public class BootstrapSegmentsResponse | ||
| { | ||
| private final CloseableIterator<DataSegment> iterator; | ||
|
|
||
| public BootstrapSegmentsResponse(final CloseableIterator<DataSegment> iterator) | ||
| { | ||
| this.iterator = iterator; | ||
| } | ||
|
|
||
| public CloseableIterator<DataSegment> getIterator() | ||
| { | ||
| return iterator; | ||
| } | ||
|
|
||
| } |
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
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
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.