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

Set soft limit for content cache while connecting to server in kopia client options #2449

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

kale-amruta
Copy link
Contributor

Change Overview

Currently while connecting to kopia server using client we are setting only hard limits in the connectOptions . But this kopia function which is called while connecting to server has the logic of setting caching as specified here. It checks if the soft limit for contenct cache is set. If it is not set, caching options are not initalized and is returned as empty struct. Hence hard limits for cache can never be set while connecting to server. This makes it compulsory to set soft limit for the content cache while connecting to server

This PR sets soft limit of content cache(It uses same value as hard value)

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

Signed-off-by: Amruta Kale <amruta.kale@veeam.com>
@infraq infraq added this to In Progress in Kanister Oct 30, 2023
@pavannd1 pavannd1 changed the title set soft limit for content cache while connecting to server in kopia client options Set soft limit for content cache while connecting to server in kopia client options Oct 30, 2023
@pavannd1
Copy link
Contributor

@julio-lopez Could you please take a look at kopia upstream and confirm if it's a bug or intentionally done?

Kanister automation moved this from In Progress to Reviewer approved Oct 30, 2023
@pavannd1 pavannd1 added the kueue label Oct 30, 2023
@mergify mergify bot merged commit 14d67fd into master Oct 31, 2023
15 checks passed
Kanister automation moved this from Reviewer approved to Done Oct 31, 2023
@mergify mergify bot deleted the clientFixForKopiaCache branch October 31, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants