A.J. Beamon
237081905d
Add support for tenant groups
2022-07-22 09:27:31 -07:00
A.J. Beamon
17146c484b
Use key-backed types for tenants. Add a tenant state field that will be used in upcoming work. Some other tenant related refactoring.
2022-07-21 20:33:28 -07:00
A.J. Beamon
410f27412b
Merge pull request #7620 from sfc-gh-ajbeamon/make-tuple
...
Add a Tuple::makeTuple function to easily construct a tuple
2022-07-20 17:09:10 -07:00
A.J. Beamon
190ad8c7e9
Convert existing tuple usages to use Tuple::makeTuple()
2022-07-19 13:45:59 -07:00
Markus Pilman
1de37afd52
Make TEST macros C++ only ( #7558 )
...
* proof of concept
* use code-probe instead of test
* code probe working on gcc
* code probe implemented
* renamed TestProbe to CodeProbe
* fixed refactoring typo
* support filtered output
* print probes at end of simulation
* fix missed probes print
* fix deduplication
* Fix refactoring issues
* revert bad refactor
* make sure file paths are relative
* fix more wrong refactor changes
2022-07-19 13:15:51 -07:00
A.J. Beamon
1b81e72604
Add a Tuple::makeTuple function to easily construct a tuple. Update Tuple to allow all types to be passed via .append() so they can be used with makeTuple.
2022-07-19 11:50:58 -07:00
A.J. Beamon
91ccdbcb03
Use a more standard encoding in the JSON metadata reported for tenants.
2022-07-13 15:22:19 -07:00
A.J. Beamon
a3f970cf3a
Parse integer options in fdbcli rather than passing the bytes unparsed. This allows specifing the string "1" instead of "\x01\x00\x00\x00\x00\x00\x00\x00".
2022-07-11 16:39:59 -07:00
Jon Fu
df1f108b78
Merge branch 'main' of github.com:apple/foundationdb into jfu-tenant-rename
2022-07-06 14:10:22 -07:00
A.J. Beamon
2f67328a0c
Update the tenant special keys submodule to support multiple sub-ranges. This will enable future work that allows configuring tenants at the same time as creating them.
2022-06-30 15:03:37 -07:00
Jon Fu
5e7bb0aa21
Merge branch 'main' of github.com:apple/foundationdb into jfu-tenant-rename
2022-06-29 13:20:19 -07:00
Trevor Clinkenbeard
db769667ae
Merge pull request #7112 from sfc-gh-tclinkenbeard/global-tag-throttling3
...
Create Global Tag Throttler
2022-06-29 10:06:00 -07:00
sfc-gh-tclinkenbeard
2134fa9a0c
Merge remote-tracking branch 'origin/main' into global-tag-throttling3
2022-06-28 19:51:41 -07:00
A.J. Beamon
df90d87903
Add missing return statement
2022-06-28 16:03:08 -07:00
Jon Fu
5fee5e1a73
add renameTenant back to TenantAPI after rebase
2022-06-28 11:54:03 -07:00
Jon Fu
869c6fcac5
reintroduce renameTenantCommandActor as a pass-through function
2022-06-28 11:35:40 -07:00
Jon Fu
904ac358ce
call directly into management api and remove extra function
2022-06-28 11:35:38 -07:00
Jon Fu
5f4f95db4d
fix unreachable code
2022-06-28 11:34:54 -07:00
Jon Fu
ddfdbdcb09
initial commit introducing renameTenant function
2022-06-28 11:34:44 -07:00
sfc-gh-tclinkenbeard
086e4bff06
Merge remote-tracking branch 'origin/main' into global-tag-throttling3
2022-06-28 10:18:13 -07:00
Markus Pilman
fc2f695b15
Merge remote-tracking branch 'origin/main' into features/cmake-refactor-dirs
2022-06-28 10:41:07 -06:00
A.J. Beamon
fcd91f676a
Merge pull request #7436 from sfc-gh-ajbeamon/tenant-reorganization
...
Tenant code refactoring
2022-06-28 09:16:19 -07:00
Markus Pilman
1bdbd89839
Merge remote-tracking branch 'origin/main' into features/cmake-refactor-dirs
2022-06-28 08:52:03 -06:00
Markus Pilman
4ac236eeba
fdbcli compiling
2022-06-27 19:20:18 -06:00
Markus Pilman
03d913a1de
Flow compiling
2022-06-27 17:05:55 -06:00
A.J. Beamon
f990fba44d
Add support for getting tenant metadata as a JSON document.
2022-06-27 12:34:40 -07:00
A.J. Beamon
4bafe77889
Some refactoring of tenant code:
...
* extract tenant management into its own file and namespace
* rename the tenant management workload source file
* extract tenant special keys functions to a separate file
* extract some helper functions to GenericTransactionHelper.h
* convert StringRef -> TenantNameRef
* move some TenantMapEntry implementation into the cpp file
* add some helper functions to decode/encode a tenant mode
2022-06-27 12:32:49 -07:00
Markus Pilman
d35445a868
enforce include modularization in cmake
2022-06-23 14:37:35 -06:00
sfc-gh-tclinkenbeard
308e0113a8
Update fdbcli quota usage output
2022-06-16 16:26:45 -07:00
sfc-gh-tclinkenbeard
99d243197e
Add fdbcli quota command
2022-06-16 14:07:16 -07:00
Jingyu Zhou
db5508520c
Merge pull request #7249 from johscheuer/fix-fdbcli-exclude-check
...
Check if all specific processes are excluded
2022-05-26 15:01:01 -07:00
Johannes M. Scheuermann
8277965158
Correct variable for for loop to iterate over inprogress exclusions
2022-05-25 17:21:15 +01:00
Johannes M. Scheuermann
0bc8e2cea6
Check if all specific processes are excluded
2022-05-25 17:08:02 +01:00
Xiaoxi Wang
fd35fde481
Merge branch 'main' of https://github.com/apple/foundationdb into readaware
2022-05-23 15:09:03 -07:00
Lukas Joswiak
475b157310
Add get
command to versionepoch help text
2022-05-23 11:45:18 -07:00
Xiaoxi Wang
73624bcd2a
Merge remote-tracking branch 'upstream/main' into readaware
2022-05-23 11:17:38 -07:00
Chaoguang Lin
5e8c3130e6
Extend the reboot interface to accept comma-delimited string;
...
Only fetch requested worker interfaces in rebootWorkerActor
Add killall test to multiprocess_fdbcli_tests
Make the rebootWorker only sends requests if all the requested workers are valid
Add comments; Organize print texts; Fix the bug clear the map every time run kill/suspend/expensive_data_check
2022-05-20 12:06:33 -07:00
Xiaoxi Wang
382f0fc4a2
merge upstream/main
2022-05-17 10:20:51 -07:00
Evan Tschannen
583120514f
fixed compilation errors
2022-05-12 17:19:25 -07:00
Evan Tschannen
c51ad847d6
revert "kill" command to previous 7.0 behavior because the current implementation is killing processes one at a time
2022-05-12 13:12:23 -07:00
Vishesh Yadav
f14baf2af8
clang-format changes
2022-05-09 14:54:51 -07:00
Vishesh Yadav
9173e2e19b
Move GlobalConfig to DatabaseContext
2022-05-09 14:54:51 -07:00
Vishesh Yadav
7578d5ebc7
Create GlobalConfig object for each database instance
...
Currently, GlobalConfig is a singleton that means for each process there is only
one GlobalConfig object. This is bug from clients perspective as a client can
keep connections to several databases. This patch tracks GlobalConfig for each
database using an unordered_map in flowGlobals.
We discovered this bug while testing multi-version client, where the client got
stuck. This was lucky, as normally it'd just write down config to the wrong
database.
2022-05-09 14:54:51 -07:00
Xiaoxi Wang
992ff59bfb
Merge branch 'main' of https://github.com/apple/foundationdb into readaware
2022-05-05 09:57:22 -07:00
Trevor Clinkenbeard
0069ce51a5
Merge pull request #7054 from sfc-gh-tclinkenbeard/remove-non-tls-support
...
Remove `DISABLE_TLS` CMake option
2022-05-03 22:13:07 -07:00
Xiaoxi Wang
7c37d172b9
solve some comments
2022-05-03 17:21:08 -07:00
Xiaoxi Wang
269d85daa8
Merge branch 'main' of https://github.com/apple/foundationdb into readaware
2022-05-03 13:37:56 -07:00
sfc-gh-tclinkenbeard
225146176d
Apply clang-format to fdbcli.actor.cpp and Net2.actor.cpp
2022-05-03 12:13:09 -07:00
sfc-gh-tclinkenbeard
06825775db
Fix formatting of lines with TLS_OPTION_FLAGS
2022-05-02 22:56:06 -07:00
sfc-gh-tclinkenbeard
7f05221cfe
Removed TLS_DISABLED macro
2022-05-02 22:15:27 -07:00