Skip to content

close startree index properly#10265

Merged
Jackie-Jiang merged 1 commit intoapache:masterfrom
klsince:close_startree_properly
Feb 10, 2023
Merged

close startree index properly#10265
Jackie-Jiang merged 1 commit intoapache:masterfrom
klsince:close_startree_properly

Conversation

@klsince
Copy link
Contributor

@klsince klsince commented Feb 10, 2023

close startree index properly to avoid potential resource leakage, which is not happening today as all resource is released upon SegmentDirectory.close. But hook up the close() calls properly in case StarTree instances will have its own resource later on.

@codecov-commenter
Copy link

codecov-commenter commented Feb 10, 2023

Codecov Report

Merging #10265 (36033ab) into master (d3c3e3f) will decrease coverage by 1.94%.
The diff coverage is 75.00%.

@@             Coverage Diff              @@
##             master   #10265      +/-   ##
============================================
- Coverage     70.40%   68.46%   -1.94%     
+ Complexity     5771     5763       -8     
============================================
  Files          2017     2017              
  Lines        109288   109291       +3     
  Branches      16614    16614              
============================================
- Hits          76939    74825    -2114     
- Misses        26947    29127    +2180     
+ Partials       5402     5339      -63     
Flag Coverage Δ
integration1 24.56% <0.00%> (-0.16%) ⬇️
integration2 ?
unittests1 67.65% <75.00%> (+<0.01%) ⬆️
unittests2 13.69% <0.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...l/indexsegment/immutable/ImmutableSegmentImpl.java 55.14% <60.00%> (ø)
...ocal/startree/v2/store/StarTreeIndexContainer.java 100.00% <100.00%> (ø)
...pinot/core/data/manager/realtime/TimerService.java 0.00% <0.00%> (-100.00%) ⬇️
...t/core/plan/StreamingInstanceResponsePlanNode.java 0.00% <0.00%> (-100.00%) ⬇️
...ore/operator/streaming/StreamingResponseUtils.java 0.00% <0.00%> (-100.00%) ⬇️
...unting/PerQueryCPUMemAccountantFactoryForTest.java 0.00% <0.00%> (-100.00%) ⬇️
...he/pinot/common/utils/grpc/GrpcRequestBuilder.java 0.00% <0.00%> (-90.91%) ⬇️
...ator/streaming/StreamingSelectionOnlyOperator.java 0.00% <0.00%> (-90.00%) ⬇️
...he/pinot/core/plan/StreamingSelectionPlanNode.java 0.00% <0.00%> (-88.89%) ⬇️
...accounting/CPUMemThreadLevelAccountingObjects.java 0.00% <0.00%> (-88.47%) ⬇️
... and 168 more

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

@Jackie-Jiang Jackie-Jiang merged commit 28c439c into apache:master Feb 10, 2023
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.

3 participants