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

handle error when starting the server #215

Merged
merged 3 commits into from
May 26, 2021

Conversation

alonlong
Copy link
Contributor

  1. handle error when starting the server, remove the panic
  2. make the logger always available, remove the nil check
  3. optimize some logics for remote uploading profile

@alonlong alonlong added enhancement New feature or request backend Mostly go code labels May 25, 2021
@alonlong alonlong requested a review from petethepig May 25, 2021 16:00
@github-actions github-actions bot requested a review from Rperry2174 May 25, 2021 16:00
@codecov
Copy link

codecov bot commented May 25, 2021

Codecov Report

Merging #215 (8620538) into main (73a7aad) will decrease coverage by 0.26%.
The diff coverage is 43.68%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #215      +/-   ##
==========================================
- Coverage   57.03%   56.78%   -0.25%     
==========================================
  Files          73       73              
  Lines        2988     2991       +3     
==========================================
- Hits         1704     1698       -6     
- Misses       1133     1140       +7     
- Partials      151      153       +2     
Impacted Files Coverage Δ
pkg/agent/profiler/profiler.go 0.00% <0.00%> (ø)
pkg/agent/selfprofile.go 0.00% <0.00%> (ø)
pkg/cli/cli.go 54.45% <0.00%> (-0.40%) ⬇️
pkg/agent/upstream/remote/remote.go 65.63% <62.50%> (+0.84%) ⬆️
pkg/exec/cli.go 39.78% <62.50%> (-0.65%) ⬇️
pkg/server/controller.go 40.96% <63.64%> (-0.04%) ⬇️
pkg/agent/session.go 64.00% <100.00%> (-2.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73a7aad...8620538. Read the comment docs.

u.done <- &wg
func (r *Remote) Stop() {
if r.done != nil {
close(r.done)
Copy link
Member

Choose a reason for hiding this comment

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

I like this solution 👍

@petethepig petethepig merged commit 970e706 into main May 26, 2021
@petethepig petethepig deleted the feature/error_handler_for_start_server branch May 26, 2021 00:24
korniltsev pushed a commit that referenced this pull request Jul 18, 2023
Change format to nested set for the dataframe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Mostly go code enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants