Allow uploading realtime segments via CLI#9861
Merged
KKcorps merged 3 commits intoapache:masterfrom Dec 7, 2022
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9861 +/- ##
=============================================
+ Coverage 28.06% 70.46% +42.39%
- Complexity 53 5062 +5009
=============================================
Files 1949 1982 +33
Lines 104632 106449 +1817
Branches 15847 16131 +284
=============================================
+ Hits 29362 75004 +45642
+ Misses 72395 26218 -46177
- Partials 2875 5227 +2352
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Contributor
Jackie-Jiang
left a comment
There was a problem hiding this comment.
This is backward incompatible change. Let's add a separate optional -type parameter, and make it default to OFFLINE
Contributor
Author
|
Done. but the reason I didn't want to make it backward compatible is this TODO comment in the existing /v2/segments code String rawTableName;
if (StringUtils.isNotEmpty(tableName)) {
rawTableName = TableNameBuilder.extractRawTableName(tableName);
} else {
// TODO: remove this when we completely deprecate the table name from segment metadata
rawTableName = segmentMetadata.getTableName();
LOGGER.warn("Table name is not provided as request query parameter when uploading segment: {} for table: {}",
segmentName, rawTableName);
} |
Jackie-Jiang
approved these changes
Dec 6, 2022
pinot-tools/src/main/java/org/apache/pinot/tools/admin/command/UploadSegmentCommand.java
Show resolved
Hide resolved
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Currently the method used only allows OFFLINE segments but we now support uploading segments to realtime tables.
#8584