Commit Graph

129 Commits

Author SHA1 Message Date
A.J. Beamon fd13bc04c8 Update the tenant maps to be keyed by ID 2023-01-23 14:09:12 -08:00
A.J. Beamon e1d48d28bf Remove tenant name from the TenantInfo object 2023-01-13 08:58:15 -08:00
Xiaoxi Wang c5dd447a8c set watchTenantCheck within deleteTenant 2023-01-12 15:18:31 -08:00
Xiaoxi Wang f0fd84e9f1 merge upstream/main; solve conflicts 2023-01-12 13:49:19 -08:00
Xiaoxi Wang 1b255dd2b6 fix the no tenant check failure 2023-01-12 12:05:55 -08:00
Xiaoxi Wang 229565c791 check SetVersionstampedKey offset 2023-01-10 23:58:51 -08:00
Xiaoxi Wang 3bcb55dccb
Apply suggestions from code review
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2023-01-10 16:57:54 -08:00
Xiaoxi Wang 50217e7172 update workload checking because watch retry 2023-01-09 13:35:21 -08:00
Xiaoxi Wang 72597f7db6 format code; refactor tenant management workload setup; use fmt::print 2023-01-07 19:43:10 -08:00
Xiaoxi Wang ef17634174 change watchCheck to coinflip; rename noDestroy 2023-01-06 15:56:22 -08:00
Xiaoxi Wang f049c3d74d rewrite watch check 2023-01-06 15:45:56 -08:00
Xiaoxi Wang aa14c4529b fix canReplyWith; TenantManagementWorkload refactoring and adding watch check 2023-01-06 12:41:27 -08:00
Xiaoxi Wang abe6a45184 add watch check in TenantManagementWorkload.actor.cpp 2023-01-05 16:51:05 -08:00
Xiaoxi Wang e3d09a5cbd Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/tenantCheck 2023-01-04 16:16:15 -08:00
Xiaoxi Wang bbcb3cc018 extract KeyBackedConfig, StorageWiggleData class; solve template resolution problem; solve MV txn and native api conflict by splitting RunTransaction file 2023-01-02 23:34:39 -08:00
Xiaoxi Wang f4dda44ac8 solve some review comments 2022-12-17 15:42:57 -08:00
Xiaoxi Wang 76f9f90af5 waitDataDbTenantModeChange to guarantee the back propagate of tenant mode in client side 2022-12-16 13:40:48 -08:00
Xiaoxi Wang 559161d2b0 modify the validTenantModeAccess to make it easier to read 2022-12-15 12:30:43 -08:00
A.J. Beamon 7cc79ccf68 Add tenant name to tenant map entry and remove the encrypted field 2022-12-05 12:26:01 -08:00
Jon Fu 3674637d37 address code review comments 2022-11-30 13:10:54 -08:00
Jon Fu 6096262597 fix compile errors 2022-11-29 16:59:20 -08:00
Jon Fu 1ad359a39f add comments and test case 2022-11-29 16:49:04 -08:00
A.J. Beamon 1fca108506 The tenant management workload was not properly handling errors from GRV calls made in the delete tenant operation 2022-11-02 16:50:41 -07:00
Nim Wijetunga 2745168d72
Add Testing for LastTenantModification Field (#8509)
* add testing

* address pr comments
2022-10-20 13:38:38 -07:00
Markus Pilman 49f0cf5ab0 Force name and description of workloads to be the same 2022-10-13 20:53:48 -06:00
A.J. Beamon c8bb15e8ee
Merge pull request #8216 from sfc-gh-ajbeamon/backup-support-for-tenants
Include tenant and metacluster metadata in backups
2022-09-28 12:00:24 -07:00
Jon Fu e342a9db43 Merge branch 'main' of github.com:apple/foundationdb into metacluster-assigned-cluster 2022-09-22 14:39:27 -07:00
A.J. Beamon 97a325adab Add an fdbcli command to get tenant group metadata 2022-09-22 13:24:21 -07:00
A.J. Beamon fda0d7223d Update backup to include system key ranges needed for tenants. Run simulated backup tests with tenants. 2022-09-22 10:00:13 -07:00
Jon Fu 4bbc2ad597 Merge branch 'main' of github.com:apple/foundationdb into metacluster-assigned-cluster 2022-09-20 09:34:06 -07:00
sfc-gh-tclinkenbeard 82adc1e856 Make g_simulator a pointer 2022-09-15 09:00:33 -07:00
Jon Fu bfd2d138f7 set assignedcluster in tenantmanagement workload 2022-09-09 16:10:42 -07:00
A.J. Beamon 726d5215a0
Remove API 720 guards for tenants (experimental feature) and the cluster ID special keys (#8108)
* Remove API 720 guards for tenants (experimental feature) and the cluster ID special keys (no need to guard)

* Enable the relaxed special key access in transactions that need to use special key-space APIs introduced in 7.2
2022-09-08 17:22:36 +02:00
Dennis Zhou 80a0816157
flow: switch from hard coded to ApiVersion like ProtocolVersion (#8071)
* flow: add ApiVersion to replace hard coding api version

Instead of hard coding api value, let's rely on feature versions akin to
ProtocolVersion.

* ApiVersion: remove use of -1 for latest and use LATEST_VERSION
2022-09-02 09:28:13 +02:00
Jon Fu 8177e3d883 remove error checks that should not occur in test workload 2022-08-22 11:12:43 -07:00
Jon Fu 2836852a7f Merge branch 'main' of github.com:apple/foundationdb into jfu-metacluster-rename 2022-08-16 16:14:28 -07:00
Jingyu Zhou 8fb6d59e94 Use error_code_grv_proxy_memory_limit_exceeded
instead of error_code_proxy_memory_limit_exceeded
2022-08-12 11:36:17 -07:00
Jingyu Zhou f912a74ec1 Fix TenantManagementWorkload.actor.cpp 2022-08-12 11:13:32 -07:00
Jingyu Zhou e5da35d7bf Fix TenantManagementWorkload with GRV errors 2022-08-12 11:13:32 -07:00
Jon Fu fe350f4514 remove debug traces 2022-08-11 14:28:05 -07:00
Jon Fu c1ce4b361b address code review comments 2022-08-11 14:25:14 -07:00
Jon Fu ea69fac3d4 account for cluster capacity error in tenant management workload 2022-08-09 13:28:26 -07:00
Jon Fu 74df84f686 Merge branch 'main' of github.com:apple/foundationdb into jfu-metacluster-rename 2022-08-08 17:49:15 -07:00
Markus Pilman 956326dd5f
Merge pull request #7804 from sfc-gh-ajbeamon/move-max-tenants-buggify
Don't buggify max tenants per cluster globally; instead buggify it in specific tests
2022-08-08 10:32:02 -06:00
Vaidas Gasiunas 79571dd2b4
Testing upgrades to a future version of FDB (#7780)
* Enable configuring the next future protocol version as the current protocol version in FDB client, fdbserver, and fdbcli

* Auto format python files used in upgrade tests

* Add a test for upgrading to a future FDB version

* Emphasize that the options for using future protocol version are intended for test purposes only

* Make the global variable for current protocol version visible only locally

* Refactirng to avoid using currentProtocolVersion() in static intialization

* Update go bindings
2022-08-08 17:29:49 +02:00
A.J. Beamon b33a9da7ce Don't buggify max tenants per cluster globally; instead buggify it in specific tests 2022-08-06 06:10:45 -07:00
Jon Fu 947d584b7e Merge branch 'feature-metacluster' of github.com:sfc-gh-ajbeamon/foundationdb into jfu-metacluster-rename 2022-08-04 14:52:49 -07:00
Jon Fu b3e129ac63 fix problem with commit_unknown_result on data cluster for metacluster rename 2022-08-04 14:51:09 -07:00
A.J. Beamon 48f149a62e Fix a small test bug and remove some delays that don't seem to be needed anymore 2022-08-04 05:57:07 -07:00
A.J. Beamon fbe1a4a69a Use multiple databases in the metacluster managemen test. Fix a test bug as well as some issues with setting up multiple extra databases. 2022-08-03 19:10:34 -07:00