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

Make sure IndexOutput of metadata file is always closed #8653

Conversation

sachinpkale
Copy link
Member

@sachinpkale sachinpkale commented Jul 12, 2023

Description

Related Issues

Resolves #8638

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.SearchWeightedRoutingIT.testStrictWeightedRoutingWithCustomString
      1 org.opensearch.remotestore.SegmentReplicationRemoteStoreIT.testRestartPrimary
      1 org.opensearch.indices.replication.SegmentReplicationRelocationIT.testRelocateWhileContinuouslyIndexingAndWaitingForRefresh
      1 org.opensearch.action.admin.cluster.node.tasks.ResourceAwareTasksTests.testBasicTaskResourceTracking

@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

Merging #8653 (792cc27) into 2.x (8c18f51) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                2.x    #8653      +/-   ##
============================================
- Coverage     70.71%   70.69%   -0.02%     
+ Complexity    57178    57157      -21     
============================================
  Files          4745     4745              
  Lines        270757   270756       -1     
  Branches      39961    39961              
============================================
- Hits         191456   191424      -32     
- Misses        62850    62875      +25     
- Partials      16451    16457       +6     
Impacted Files Coverage Δ
...earch/index/store/RemoteSegmentStoreDirectory.java 92.05% <100.00%> (+2.75%) ⬆️

... and 457 files with indirect coverage changes

@dreamer-89
Copy link
Member

Let's have another pair of eyes for review as we want this in 2.9 branch. @mch2 @ashking94 @gbbafna @Bukhtawar : Ping for review

Signed-off-by: Sachin Kale <[email protected]>
@ashking94
Copy link
Member

Let's have another pair of eyes for review as we want this in 2.9 branch. @mch2 @ashking94 @gbbafna @Bukhtawar : Ping for review

@dreamer-89 The changes looks good.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@sachinpkale
Copy link
Member Author

Checking the build failure.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.indices.replication.RemoteStoreReplicationSourceTests.testGetSegmentFilesFailure

@sachinpkale sachinpkale merged commit 25a6a82 into opensearch-project:2.x Jul 12, 2023
sachinpkale added a commit to sachinpkale/OpenSearch that referenced this pull request Jul 12, 2023
sachinpkale added a commit that referenced this pull request Jul 12, 2023
---------

Signed-off-by: Sachin Kale <[email protected]>
Co-authored-by: Sachin Kale <[email protected]>
@@ -604,6 +604,28 @@ public void testUploadMetadataNonEmpty() throws IOException {
}
}

public void testUploadMetadataMissingSegment() throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

@sachinpkale : This test is missing in main. This needs authors to fix/amend this test separately on 2.x. Example PR #9076

Copy link
Member

Choose a reason for hiding this comment

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

this test is now failing on 2.x - #9095

Copy link
Member

Choose a reason for hiding this comment

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

This is fixed with #9099

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants