Skip to content
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

Revert "Using local copy of segment instead of downloading from remote" #13114

Merged

Conversation

swaminathanmanish
Copy link
Contributor

@swaminathanmanish swaminathanmanish commented May 9, 2024

Reverts #12863 until further verification.

Seeing an error after this change, during metadata push, which blocks segments from being uploaded. Any minion task that uses BaseMultipleSegmentsConversionExecutor will run into this error.

java.lang.IllegalArgumentException: File system element for parameter 'path' does not exist: '/home/pinot/data/minionData/SegmentRefreshTask/tmp-f19f9d8f-5f15-4165-8f5b-72673845d172/convertedTarredSegmentDir/refreshed_1715215417793_2_taxitest_0.tar.gz'
at org.apache.commons.io.file.PathUtils.requireExists(PathUtils.java:1467) ~[startree-pinot-all-1.2.0-ST.35-jar-with-dependencies.jar:1.2.0-ST.35-50452797ff61e418ecd172cdf7f7090fbf331dec]
at org.apache.commons.io.file.PathUtils.sizeOf(PathUtils.java:1634) ~[startree-pinot-all-1.2.0-ST.35-jar-with-dependencies.jar:1.2.0-ST.35-50452797ff61e418ecd172cdf7f7090fbf331dec]
at org.apache.commons.io.FileUtils.lambda$sizeOf$13(FileUtils.java:2863) ~[startree-pinot-all-1.2.0-ST.35-jar-with-dependencies.jar:1.2.0-ST.35-50452797ff61e418ecd172cdf7f7090fbf331dec]
at org.apache.commons.io.function.Uncheck.get(Uncheck.java:197) ~[startree-pinot-all-1.2.0-ST.35-jar-with-dependencies.jar:1.2.0-ST.35-50452797ff61e418ecd172cdf7f7090fbf331dec]
at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2863) ~[startree-pinot-all-1.2.0-ST.35-jar-with-dependencies.jar:1.2.0-ST.35-50452797ff61e418ecd172cdf7f7090fbf331dec]
at org.apache.pinot.spi.filesystem.LocalPinotFS.length(LocalPinotFS.java:106) ~[startree-pinot-all-1.2.0-ST.35-jar-with-dependencies.jar:1.2.0-ST.35-50452797ff61e418ecd172cdf7f7090fbf331dec]
at org.apache.pinot.spi.filesystem.NoClosePinotFS.length(NoClosePinotFS.java:80) ~[startree-pinot-all-1.2.0-ST.35-jar-with-dependencies.jar:1.2.0-ST.35-50452797ff61e418ecd172cdf7f7090fbf331dec]
at org.apache.pinot.controller.api.resources.PinotSegmentUploadDownloadRestletResource.uploadSegment(PinotSegmentUploadDownloadRestletResource.java:308) ~[startree-pinot-all-1.2.0-ST.35-jar-with-dependencies.jar:1.2.0-ST.35-50452797ff61e418ecd172cdf7f7090fbf331dec]
at org.apache.pinot.controller.api.resources.PinotSegmentUploadDownloadRestletResource.uploadSegmentAsMultiPartV2(PinotSegmentUploadDownloadRestletResource.java:639) ~[startree-pinot-all-1.2.0-ST.35-jar-with-dependencies.jar:1.2.0-ST.35-50452797ff61e418ecd172cdf7f7090fbf331dec]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]

@swaminathanmanish
Copy link
Contributor Author

@klsince - Could you please review ?

@codecov-commenter
Copy link

codecov-commenter commented May 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 62.21%. Comparing base (59551e4) to head (ee89454).
Report is 421 commits behind head on master.

Files Patch % Lines
.../tasks/BaseMultipleSegmentsConversionExecutor.java 0.00% 10 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13114      +/-   ##
============================================
+ Coverage     61.75%   62.21%   +0.46%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2514      +78     
  Lines        133233   137790    +4557     
  Branches      20636    21320     +684     
============================================
+ Hits          82274    85722    +3448     
- Misses        44911    45671     +760     
- Partials       6048     6397     +349     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 62.13% <0.00%> (+0.42%) ⬆️
java-21 62.09% <0.00%> (+0.46%) ⬆️
skip-bytebuffers-false 62.17% <0.00%> (+0.42%) ⬆️
skip-bytebuffers-true 62.04% <0.00%> (+34.32%) ⬆️
temurin 62.21% <0.00%> (+0.46%) ⬆️
unittests 62.20% <0.00%> (+0.46%) ⬆️
unittests1 46.86% <ø> (-0.03%) ⬇️
unittests2 27.77% <0.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@klsince klsince merged commit 2adb4d7 into apache:master May 9, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants