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: start http server after table recovery finished #741

Merged
merged 3 commits into from
Mar 16, 2023

Conversation

jiacai2050
Copy link
Contributor

@jiacai2050 jiacai2050 commented Mar 15, 2023

Which issue does this PR close?

Closes #559

Rationale for this change

If server start to serve request before table recovery finished, it may happen
panic in issue #559.

What changes are included in this PR?

  • Update HTTP server start location, only start server after table recovery finished, same with gRPC/MySQL server.

Are there any user-facing changes?

No

How does this change test

CI and manually.

@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2023

Codecov Report

Merging #741 (ec74f31) into main (56bb7b0) will increase coverage by 0.01%.
The diff coverage is 65.11%.

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

@@            Coverage Diff             @@
##             main     #741      +/-   ##
==========================================
+ Coverage   68.43%   68.45%   +0.01%     
==========================================
  Files         294      292       -2     
  Lines       45712    45343     -369     
==========================================
- Hits        31284    31040     -244     
+ Misses      14428    14303     -125     
Impacted Files Coverage Δ
server/src/http.rs 0.00% <0.00%> (ø)
server/src/server.rs 0.00% <0.00%> (ø)
sql/src/frontend.rs 0.00% <0.00%> (ø)
sql/src/influxql/mod.rs 100.00% <ø> (+100.00%) ⬆️
sql/src/influxql/planner.rs 0.00% <0.00%> (ø)
sql/src/planner.rs 91.96% <0.00%> (-0.06%) ⬇️
sql/src/tests.rs 88.00% <ø> (-5.81%) ⬇️
sql/src/influxql/provider.rs 78.40% <78.40%> (ø)

... and 4 files with indirect coverage changes

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

server/src/server.rs Outdated Show resolved Hide resolved
server/src/server.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@chunshao90 chunshao90 left a comment

Choose a reason for hiding this comment

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

LGTM

@chunshao90 chunshao90 added this pull request to the merge queue Mar 16, 2023
Merged via the queue into apache:main with commit f8becfc Mar 16, 2023
@jiacai2050 jiacai2050 deleted the fix-server-panic branch March 16, 2023 08:11
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* fix: start http server after table recovery finished

* fix wrong error type

* fix CR
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.

Panicked when create table
3 participants