Add allowRefresh option to UploadSegment#8125
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8125 +/- ##
============================================
- Coverage 71.39% 64.74% -6.66%
+ Complexity 4303 4302 -1
============================================
Files 1624 1579 -45
Lines 84198 82322 -1876
Branches 12602 12399 -203
============================================
- Hits 60116 53300 -6816
- Misses 19970 25228 +5258
+ Partials 4112 3794 -318
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Jackie-Jiang
left a comment
There was a problem hiding this comment.
Overriding a segment is called refresh in pinot. Consider naming the parameter allowRefresh?
|
@kkrugler Please take a look at this PR. Note that our requirement for this is very specific -- for cloud data migration from on-prem where newer segment may have already landed on Azure and the migration script should honor that and not overwrite. |
|
Renamed the parameter to allowRefresh. @Jackie-Jiang please take a look. |
Currently, when a segment is uploaded, we always overwrite if a segment with the same name already exists. Having an overwrite parameter in the UploadSegment API will give clients finer control during uploading segments. Note that the default option is set to true to retain existing behavior.
- Improve description for a method. - Add message when exception is thrown.
Currently, when a segment is uploaded, we always overwrite if a
segment with the same name already exists. Having an overwrite
parameter in the UploadSegment API will give clients finer
control during uploading segments.
Note that the default value is set to true to retain existing
behavior.