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

Tenants #70

Merged
merged 14 commits into from
Jan 31, 2023
Merged

Tenants #70

merged 14 commits into from
Jan 31, 2023

Conversation

PierreZ
Copy link
Member

@PierreZ PierreZ commented Sep 8, 2022

Adding support for tenants.

@PierreZ
Copy link
Member Author

PierreZ commented Sep 8, 2022

Blocked by #31 because Tenant management functions are expected to run inside a db.run

@coveralls
Copy link

coveralls commented Sep 8, 2022

Pull Request Test Coverage Report for Build 3867971507

  • 62 of 185 (33.51%) changed or added relevant lines in 5 files are covered.
  • 50 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-1.4%) to 72.541%

Changes Missing Coverage Covered Lines Changed/Added Lines %
foundationdb/src/error.rs 0 3 0.0%
foundationdb-bindingtester/src/main.rs 12 58 20.69%
foundationdb/src/tenant.rs 38 112 33.93%
Files with Coverage Reduction New Missed Lines %
foundationdb-bindingtester/src/main.rs 1 86.58%
foundationdb/src/directory/directory_subspace.rs 2 90.67%
foundationdb/src/directory/directory_layer.rs 8 92.46%
foundationdb/src/transaction.rs 8 87.27%
foundationdb/src/database.rs 31 69.01%
Totals Coverage Status
Change from base Build 3669323292: -1.4%
Covered Lines: 4343
Relevant Lines: 5987

💛 - Coveralls

@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2022

Codecov Report

Base: 82.44% // Head: 79.92% // Decreases project coverage by -2.52% ⚠️

Coverage data is based on head (378753b) compared to base (a77116e).
Patch coverage: 33.51% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
- Coverage   82.44%   79.92%   -2.53%     
==========================================
  Files          26       27       +1     
  Lines        5042     5235     +193     
==========================================
+ Hits         4157     4184      +27     
- Misses        885     1051     +166     
Impacted Files Coverage Δ
foundationdb/src/error.rs 60.56% <0.00%> (-2.68%) ⬇️
foundationdb/src/lib.rs 100.00% <ø> (ø)
foundationdb/src/tuple/hca.rs 67.25% <ø> (-0.29%) ⬇️
foundationdb-bindingtester/src/main.rs 86.58% <20.68%> (-3.16%) ⬇️
foundationdb/src/tenant.rs 33.92% <33.92%> (ø)
foundationdb/src/database.rs 69.01% <100.00%> (-17.99%) ⬇️
foundationdb/src/directory/mod.rs 94.11% <100.00%> (+0.73%) ⬆️
foundationdb/src/directory/directory_layer.rs 92.46% <0.00%> (-1.88%) ⬇️
foundationdb/src/directory/directory_subspace.rs 90.66% <0.00%> (-1.34%) ⬇️
... and 7 more

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Speedy37
Copy link
Collaborator

Good start.
I think a TenantDatabase type with create_trx, run and transact* methods could be nice.

@PierreZ
Copy link
Member Author

PierreZ commented Sep 30, 2022

Good start. I think a TenantDatabase type with create_trx, run and transact* methods could be nice.

I agree 😄 Currently focusing on the bindingTester, but that should be next 🚀

@PierreZ PierreZ force-pushed the tenants branch 4 times, most recently from 8fa886d to f66a9fe Compare October 6, 2022 06:24
@PierreZ PierreZ added the correctness run hundred of iterations on the bindingTester during CI label Oct 6, 2022
@PierreZ PierreZ force-pushed the tenants branch 3 times, most recently from 5be2b93 to f66a9fe Compare October 6, 2022 09:57
@PierreZ
Copy link
Member Author

PierreZ commented Oct 6, 2022

I have started some work with another pr because I think something is wrong on bindingTester.

@PierreZ
Copy link
Member Author

PierreZ commented Oct 10, 2022

Blocked by bindingTester issue. More details here

@PierreZ
Copy link
Member Author

PierreZ commented Dec 15, 2022

Given tenant are highly experimental and won't be stable in a short-term, I propose that:

  • we add more warning about the state of tenants in fdb,
  • we allow failure on bindingTester when running it with tenant enabled.

Like this, we will be able to merge this work.

In the mean time, I'm trying to get access to bigger machine for Github Actions

@Speedy37
Copy link
Collaborator

Maybe put it behind a feature flag.

@PierreZ
Copy link
Member Author

PierreZ commented Dec 22, 2022

Maybe put it behind a feature flag.

Sorry for the late reply, i was busy on other subject. You are right, I will do that, once I'm back from holiday 🎄

@PierreZ PierreZ marked this pull request as ready for review January 8, 2023 16:44
@PierreZ
Copy link
Member Author

PierreZ commented Jan 8, 2023

Ready to be reviewed.

We have used the tenant's feature internally in Clever Cloud, so things are working as expected.

Please bare in mind that this is an experimental feature

@PierreZ PierreZ requested a review from Speedy37 January 23, 2023 08:36
@PierreZ PierreZ merged commit 0ae70cc into foundationdb-rs:main Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
correctness run hundred of iterations on the bindingTester during CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants