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

ISSUE-9555 fix GcsPinotFS #9556

Merged
merged 3 commits into from
Oct 18, 2022
Merged

ISSUE-9555 fix GcsPinotFS #9556

merged 3 commits into from
Oct 18, 2022

Conversation

lfernandez93
Copy link
Contributor

trying to fix the issue arisen by #9555 changes discussed in slack thread https://apache-pinot.slack.com/archives/C011C9JHN7R/p1664826035484389

@xiangfu0 xiangfu0 self-requested a review October 7, 2022 18:49
@lfernandez93
Copy link
Contributor Author

cc @zhtaoxiang

@xiangfu0
Copy link
Contributor

xiangfu0 commented Oct 7, 2022

cc: @elonazoulay

@codecov-commenter
Copy link

codecov-commenter commented Oct 7, 2022

Codecov Report

Merging #9556 (f881c3f) into master (8cdae92) will increase coverage by 41.70%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master    #9556       +/-   ##
=============================================
+ Coverage     28.28%   69.99%   +41.70%     
- Complexity       53     4905     +4852     
=============================================
  Files          1917     1939       +22     
  Lines        102594   103675     +1081     
  Branches      15586    15728      +142     
=============================================
+ Hits          29022    72563    +43541     
+ Misses        70735    26009    -44726     
- Partials       2837     5103     +2266     
Flag Coverage Δ
integration1 25.85% <ø> (-0.25%) ⬇️
integration2 24.45% <ø> (-0.12%) ⬇️
unittests1 67.39% <ø> (?)
unittests2 15.60% <ø> (?)

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

Impacted Files Coverage Δ
...pache/pinot/core/query/executor/QueryExecutor.java 12.50% <0.00%> (-87.50%) ⬇️
.../operator/blocks/results/MetadataResultsBlock.java 50.00% <0.00%> (-50.00%) ⬇️
...operator/blocks/results/ExceptionResultsBlock.java 75.00% <0.00%> (-25.00%) ⬇️
...operator/blocks/results/SelectionResultsBlock.java 77.77% <0.00%> (-22.23%) ⬇️
...core/common/datatable/DataTableBuilderFactory.java 52.94% <0.00%> (-13.73%) ⬇️
.../operator/blocks/results/DistinctResultsBlock.java 93.75% <0.00%> (-6.25%) ⬇️
...r/helix/SegmentOnlineOfflineStateModelFactory.java 56.43% <0.00%> (-3.95%) ⬇️
...apache/pinot/common/datatable/DataTableImplV3.java 92.94% <0.00%> (-1.77%) ⬇️
...ache/pinot/common/metadata/ZKMetadataProvider.java 67.22% <0.00%> (-0.56%) ⬇️
...rg/apache/pinot/core/minion/RawIndexConverter.java 57.27% <0.00%> (-0.53%) ⬇️
... and 1345 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -92,7 +92,7 @@ public void setup() {
}
}

@AfterClass
@AfterMethod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you elaborate more on why this change is needed? thx

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey, gladly, when done with @afterclass this particular test was failing, it's important to note that this test only runs if this is provided

given that I made changes around that class I was running this test, and I found that because it was not getting cleaned up after every method this assertion was failing given that there are 2 files created by that are not cleaned up.

So I decided to run the clean up after each test method is invoked.

Copy link
Contributor

@walterddr walterddr Oct 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this case I think we should split this into before/after class and before/after method. it is super weird to have beforeclass then aftermethod.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think a fully follow, what do we need to split in particular? the only thing giving issue is that it was AfterClass so some files that were not cleaned up in the middle were tainting the results of another test, so it's just doing the clean up per method.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm. github doesn't allow me to comment outside of range. can I directly push to your branch?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just did

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like everything came out okay! :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, the test is skipped b/c there's no credential on GHA. let me verify locally

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i did run locally and it works

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need anyone else review?

@lfernandez93
Copy link
Contributor Author

0.11.0 version with this fix has been deployed in our clusters, things seem okay.

@walterddr walterddr merged commit 4439197 into apache:master Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants