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: can't recognize aliyun oss NotFoundError when load manifest #678

Merged
merged 2 commits into from
Mar 1, 2023

Conversation

ShiKaiWi
Copy link
Member

@ShiKaiWi ShiKaiWi commented Mar 1, 2023

Which issue does this PR close?

Closes #

Rationale for this change

Currently, the not found error won't be thrown when access an object file in the aliyun oss by oss sdk, leading to possible panic when restarting.

What changes are included in this PR?

Take a workaround way (check whether the error message contains '404' or 'not found') to detect the not found error.

Are there any user-facing changes?

None.

How does this change test

Manual test.

@ShiKaiWi ShiKaiWi marked this pull request as ready for review March 1, 2023 03:09
Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

Codecov Report

Merging #678 (2543fb8) into main (f0b687b) will decrease coverage by 0.01%.
The diff coverage is 28.57%.

❗ Current head 2543fb8 differs from pull request most recent head f9a72a6. Consider uploading reports for the commit f9a72a6 to get more accurate results

@@            Coverage Diff             @@
##             main     #678      +/-   ##
==========================================
- Coverage   67.54%   67.54%   -0.01%     
==========================================
  Files         281      281              
  Lines       44302    44309       +7     
==========================================
+ Hits        29925    29927       +2     
- Misses      14377    14382       +5     
Impacted Files Coverage Δ
analytic_engine/src/manifest/details.rs 95.47% <28.57%> (-0.47%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@MichaelLeeHZ MichaelLeeHZ added this pull request to the merge queue Mar 1, 2023
Merged via the queue into apache:main with commit b53aff9 Mar 1, 2023
@ShiKaiWi ShiKaiWi deleted the fix-aliyun-oss-object-not-exists branch March 8, 2023 01:48
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
…che#678)

* fix: can't recognize aliyun oss NotFoundError when load manifest

* chore: fix wrong or operator
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.

None yet

5 participants