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

Fix read/write in stream method for Diff Manifest when shard diff file is null #14938

Merged

Conversation

shailendra0811
Copy link
Contributor

@shailendra0811 shailendra0811 commented Jul 24, 2024

Description

IndicesRoutingDiffPath would be null in diff manifest when there are no updates in routing table. Currently we are not handling null values and it will throw an EOFException if it encounters a null when trying to read/write indicesRoutingDiffPath in/from diff manifest.

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

@Arpit-Bandejiya Arpit-Bandejiya added the backport 2.x Backport to 2.x branch label Jul 24, 2024
@shailendra0811 shailendra0811 changed the title Fix read/write method for Diff Manifest in case Shard diff file is null Fix read/write in stream method for Diff Manifest in case Shard diff file is null Jul 24, 2024
Copy link
Contributor

❌ Gradle check result for 7f00ba4: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Collaborator

@Bukhtawar Bukhtawar left a comment

Choose a reason for hiding this comment

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

Please add PR description

Copy link
Contributor

✅ Gradle check result for 27e90df: SUCCESS

Copy link

codecov bot commented Jul 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.75%. Comparing base (7673a77) to head (27e90df).

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14938      +/-   ##
============================================
- Coverage     71.89%   71.75%   -0.14%     
+ Complexity    62701    62670      -31     
============================================
  Files          5159     5159              
  Lines        294157   294156       -1     
  Branches      42547    42547              
============================================
- Hits         211492   211084     -408     
- Misses        65200    65748     +548     
+ Partials      17465    17324     -141     

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

@shailendra0811 shailendra0811 changed the title Fix read/write in stream method for Diff Manifest in case Shard diff file is null Fix read/write in stream method for Diff Manifest when shard diff file is null Jul 24, 2024
@Bukhtawar Bukhtawar merged commit 5744eae into opensearch-project:main Jul 24, 2024
33 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 24, 2024
…ll. (#14938)

Signed-off-by: Shailendra Singh <[email protected]>
(cherry picked from commit 5744eae)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 24, 2024
…ll. (#14938)

Signed-off-by: Shailendra Singh <[email protected]>
(cherry picked from commit 5744eae)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
harshavamsi pushed a commit to harshavamsi/OpenSearch that referenced this pull request Aug 20, 2024
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
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.

4 participants