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

exit the application once watch is stopped #929

Merged
merged 1 commit into from
May 31, 2024

Conversation

tadus21
Copy link
Contributor

@tadus21 tadus21 commented May 30, 2024

Fix for PR that I've made couple weeks before. Noticed that my solution actually does not end Run function and the process keeps hanging indefinitely. To fix this added another channel which would notify that the server/process needs to be stopped.

api.log.Errorf("Watch error: %v", err)
return
}
api.handleWatchResponse(commandId, err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

missed this case in the previous PR so fixing it as well

@tadus21
Copy link
Contributor Author

tadus21 commented May 30, 2024

@Slach don't have permissions to add you as a reviewer so tagging you in the comment

@Slach Slach self-requested a review May 30, 2024 17:16
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9306204339

Details

  • 5 of 10 (50.0%) changed or added relevant lines in 1 file are covered.
  • 257 unchanged lines in 10 files lost coverage.
  • Overall coverage decreased (-2.0%) to 65.349%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/server/server.go 5 10 50.0%
Files with Coverage Reduction New Missed Lines %
pkg/backup/restore.go 2 67.08%
pkg/backup/backuper.go 2 65.41%
cmd/clickhouse-backup/main.go 2 77.19%
pkg/storage/object_disk/object_disk.go 5 70.95%
pkg/status/status.go 9 70.2%
pkg/config/config.go 10 70.9%
pkg/storage/general.go 23 61.66%
pkg/server/server.go 23 53.11%
pkg/storage/s3.go 25 43.88%
pkg/storage/gcs.go 156 0.0%
Totals Coverage Status
Change from base Build 9290182790: -2.0%
Covered Lines: 8498
Relevant Lines: 13004

💛 - Coveralls

@Slach Slach merged commit 45a4e61 into Altinity:master May 31, 2024
20 checks passed
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

3 participants