1588 Commits

Author SHA1 Message Date
Josh Slocum
721c64b698 Adding Blob Granule Client C Unit Tests 2022-03-28 15:42:33 -05:00
A.J. Beamon
3cf0ea5950
Merge pull request #6697 from sfc-gh-ajbeamon/fix-tenant-map-range-read-bug
Fix bug in tenant map range reads when the end key is outside of the tenant map range
2022-03-28 10:55:33 -07:00
Steve Atherton
478ff1eb76
Merge pull request #6652 from sfc-gh-anoyes/anoyes/fast-alloc
Move most usage of FastAlloc to malloc
2022-03-26 15:46:05 -07:00
A.J. Beamon
2475c4e2d6 Fix various non-compiling code errors. 2022-03-25 15:56:49 -07:00
A.J. Beamon
48447c2788 Add the tenant management module to CMakeLists. Don't test tenants before API version 710. 2022-03-25 14:35:16 -07:00
A.J. Beamon
e8a38bb048 Fix bug in tenant map range reads when the end key is outside of the tenant map range. 2022-03-25 14:24:25 -07:00
A.J. Beamon
b4cfcc10d3 Move Python tenant management to its own module 2022-03-25 11:36:35 -07:00
Josh Slocum
bf3da72637 Merge branch 'main' into bg_client_bindings_improvements 2022-03-24 15:56:30 -05:00
Josh Slocum
b42c49ca0a Adding full file length for future-proofing 2022-03-24 15:56:03 -05:00
Josh Slocum
b92c6ea92c granule parallelism, metrics, and other improvements to bg client bindings 2022-03-24 13:44:09 -05:00
Vaidas Gasiunas
68a9abd3c5 Upgrade Test: Derive API version from the versions tested; Improve handing of error situations 2022-03-24 17:23:17 +01:00
Vaidas Gasiunas
c63a1a18dd Upgrade Tests: Check workload progress after each upgrade step 2022-03-24 12:36:22 +01:00
A.J. Beamon
77ce0f4fc7 Add a unit test in Python to exercise some of the tenant code. Add some comments to the allocate and delete tenant implementations. 2022-03-23 15:50:06 -07:00
A.J. Beamon
8b92d3fccd Use special keys to create/delete tenants 2022-03-23 14:46:56 -07:00
Jon Fu
8e848f16df Support tuples in python tenants 2022-03-23 14:46:55 -07:00
A.J. Beamon
ce03f5783d Add tenant support to Python 2022-03-23 14:46:55 -07:00
A.J. Beamon
ca653c77ee
Tenant binding tester support (#6642)
* Add binding tester support for tenants

* Configure tenant_mode=optional_experimental in the binding tester

* Use the special key-space to delete tenants in between binding tester runs.

* Separate tenant tester spec into its own file.
2022-03-23 13:57:45 -07:00
Jon Fu
344198793d remove TODO comment 2022-03-23 16:50:55 -04:00
Jon Fu
7c3151142e Merge branch 'main' of github.com:apple/foundationdb into jfu-grv-cache-multi-threaded 2022-03-23 16:41:33 -04:00
Jon Fu
4466e00716 Fix multithreaded GRV cache code and enable grv caching in multithreaded ctest suite 2022-03-23 16:09:12 -04:00
Junhyun Shim
077d82c01c Fix g++ warnings (as errors) 2022-03-23 19:28:06 +01:00
Junhyun Shim
d450a8ee26 Fix Linux build error 2022-03-23 17:32:41 +01:00
Junhyun Shim
1c8edc92f9 Apply clang-format to earlier mako changes 2022-03-23 14:15:24 +01:00
Andrew Noyes
07eae17068 Add fdb_c_client_memory_test 2022-03-22 14:13:59 -07:00
Junhyun Shim
00ce4f6248 Add asynchronous execution mode
- option -t (or --threads) determines the number of worker threads
  running asio job scheduler (io_context).
- value of --async_xacts indicates how many concurrent transactions should be running
  (only applies to '-m build' or '-m run')
- concurrent transactions whose count is specified in --async_xacts
  walks through the workload sequence (-x) as worker threads would in
  synchronous execution mode: i.e. --async_xacts=0.
- concurrent transactions in async mode, as would worker threads in sync mode,
  divide up the insertion range in build mode,
  and iteration limit in 'run' mode.
2022-03-22 22:00:37 +01:00
Vaidas Gasiunas
6f8b410a8a Upgrade Tests: Run API workloads until stop commands; Initial ctest for upgrade 2022-03-22 20:30:06 +01:00
Vaidas Gasiunas
5bcc173044 Merge remote-tracking branch 'apple/main' into vgasiunas-upgrade-test 2022-03-22 12:17:28 +01:00
Vaidas Gasiunas
0f9ebaae37 Upgrade Tests: Scripting download of old libraries and cluster upgrades; Specifying external library directory in C API Tester 2022-03-22 12:14:01 +01:00
sfc-gh-tclinkenbeard
a71099471b Update copyright header dates 2022-03-21 13:36:23 -07:00
A.J. Beamon
fd81ef99c0
Merge pull request #6561 from sfc-gh-ajbeamon/fdb-tenant-fdbcli
Add fdbcli support for tenants
2022-03-21 11:26:10 -07:00
A.J. Beamon
3f7365c433 Remove test debugging lines 2022-03-21 10:23:22 -07:00
Junhyun Shim
cc2b9fad1e Simpler logging with thread-local loggers
- No need to repeat parts of the messages: e.g. "ERROR: "
- Thread-specific information prefixed before messages: e.g. "WORKER[  1: 4]"
- Misc. C-to-CPP styling
2022-03-19 22:53:19 +01:00
A.J. Beamon
a23add6bc4 Add fdbcli test for tenants. Add documentation for new fdbcli tenant commands. Various output cleanup. Fix limit parsing bug in listtenants command. Update gettenant output format. 2022-03-17 12:10:39 -07:00
A.J. Beamon
ee70837970 Remove some debugging lines, change simulated default cluster frequency, and use a different mechanism to disable tenants for the change feed test. 2022-03-17 12:10:19 -07:00
A.J. Beamon
92c1044a3d Fix formatting 2022-03-17 12:10:19 -07:00
A.J. Beamon
513e8887dd Add a new C unit test that uses tenants. Fix simulation issue where resetting a transaction could cause in-flight operations to pick up the simulated default tenant for the next retry. Use the new list tenant JSON format in the tenant management test. Fix missing raw_access option in special key space correctness test. 2022-03-17 12:10:19 -07:00
Jon Fu
9731d96797 Merge branch 'main' of github.com:apple/foundationdb into jfu-grv-cache-multi-threaded 2022-03-16 14:32:33 -04:00
Jon Fu
7ab205391b Revert "remove all multi-version client code related to grv cache"
This reverts commit 6d05ecffc21d8497b4f753d11b17beb6102f32ab.
2022-03-16 14:26:36 -04:00
Vaidas Gasiunas
f4bb82ad56
Merge pull request #6433 from sfc-gh-vgasiunas/vgasiunas-system-tester
A framework for C API tests
2022-03-16 10:49:52 +01:00
A.J. Beamon
e8077b65e1
Merge pull request #6559 from sfc-gh-ajbeamon/fdb-tenant-client
Add client support for tenants
2022-03-15 12:40:17 -07:00
Jingyu Zhou
e89ee7d5a0
Merge pull request #6589 from sfc-gh-tclinkenbeard/fix-typos
Fix typos
2022-03-15 10:10:23 -07:00
A.J. Beamon
502209229c Update generated.go 2022-03-15 09:23:30 -07:00
A.J. Beamon
68069c9784 Undo some unused changes. Fix tenant cache eviction. 2022-03-15 09:23:30 -07:00
A.J. Beamon
8bc2b283e1 Create a special keys API to create, delete, and read tenants. Remove the C API to create/delete tenants. 2022-03-15 09:23:30 -07:00
A.J. Beamon
c89b1e3537 Use TenantName type instead of StringRef in various places. Add a function on transactions to get the tenant name being used for the transaction. 2022-03-15 09:21:27 -07:00
A.J. Beamon
c635dcd3ad Add tenant support in the FDB native client 2022-03-15 09:21:27 -07:00
Vaidas Gasiunas
1a1c157246 ApiTester: address a thread sanitizer issue 2022-03-15 14:55:35 +01:00
sfc-gh-tclinkenbeard
baec03090e Fix "guarantee" misspelling 2022-03-14 16:33:09 -07:00
Trevor Clinkenbeard
6a28bddd35
Fix file names in copyright headers (#6578) 2022-03-14 13:24:25 -07:00
Vaidas Gasiunas
09bb37ce3e ApiTester: retry a transaction after all futures are ready 2022-03-13 21:37:46 +01:00