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

APPS-1325 Delete failed backups #247

Merged
merged 8 commits into from
Nov 5, 2024
Merged

Conversation

korotkov-aerospike
Copy link
Contributor

@korotkov-aerospike korotkov-aerospike commented Nov 5, 2024

PR is fixing unstable integration tests after introducing client cache

  1. Delete failed full backup (per namespace)
  2. Check connection status before getting client from cache

@codecov-commenter
Copy link

codecov-commenter commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 48.14815% with 14 lines in your changes missing coverage. Please review.

Project coverage is 28.09%. Comparing base (5b787d0) to head (406d9a9).

Files with missing lines Patch % Lines
pkg/service/client_manager.go 46.15% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               v2     #247      +/-   ##
==========================================
+ Coverage   28.04%   28.09%   +0.05%     
==========================================
  Files          39       39              
  Lines        2168     2189      +21     
==========================================
+ Hits          608      615       +7     
- Misses       1475     1489      +14     
  Partials       85       85              

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

@korotkov-aerospike korotkov-aerospike marked this pull request as ready for review November 5, 2024 08:54
@@ -73,17 +99,21 @@ func (cm *ClientManagerImpl) GetClient(cluster *model.AerospikeCluster) (*backup
}

// getExistingClient tries to get an existing client from the cache.
// Returns nil if client doesn't exist.
func (cm *ClientManagerImpl) getExistingClient(cluster *model.AerospikeCluster) *backup.Client {
// Returns nil if client doesn't exist, error is client is not connected.
Copy link
Member

Choose a reason for hiding this comment

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

is -> if

@korotkov-aerospike korotkov-aerospike merged commit 28fb208 into v2 Nov 5, 2024
7 checks passed
@korotkov-aerospike korotkov-aerospike deleted the deleteFailedBackups branch November 5, 2024 09:18
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.

3 participants