Nim Wijetunga
6b525ec053
format
2022-07-27 10:55:58 -07:00
Nim Wijetunga
7cc58cb1af
fix pr issues
2022-07-26 10:14:59 -07:00
Nim Wijetunga
26d233c0f8
encryption as a tenant property
2022-07-25 17:19:14 -07:00
A.J. Beamon
237081905d
Add support for tenant groups
2022-07-22 09:27:31 -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
A.J. Beamon
90625ba20d
Update the create tenant transaction to take the ID as a parameter. Generate unique IDs for multiple creations in the same transaction. Don't set lock aware options inside the tenant transaction code.
2022-06-06 09:45:14 -07:00
Xiaoxi Wang
ad16a9344e
catch special_keys_api_failure()
2022-05-10 14:00:14 -07:00
A.J. Beamon
79063d5fc4
Better accounting for tenant prefixes when working with key size limits ( #6973 )
...
* Consider tenant prefix sizes when doing key size limit checks
* Fix formatting
2022-04-27 14:38:59 -07:00
sfc-gh-tclinkenbeard
a71099471b
Update copyright header dates
2022-03-21 13:36:23 -07:00
A.J. Beamon
4079b9f23d
Lazily assign the default tenant in simulated tests so that we can enforce that raw access isn't used on tenant transactions. Update various tests to avoid using raw access or system key access after they have performed other operations on the transaction.
2022-03-17 12:10:19 -07:00
A.J. Beamon
e339c8f8f2
Fix formatting
2022-03-17 12:10:18 -07:00
A.J. Beamon
c81c68af4f
Add unknown_tenant error to FuzzApiCorrectness
2022-03-17 12:10:18 -07:00
A.J. Beamon
4b521b38cb
Update various workloads to specify that they are expecting raw access. A couple other raw access related fixes. Disable tenant tests in backup and DR tests for now.
2022-03-17 12:10:18 -07:00
A.J. Beamon
592f31755e
Fixes to the new tenant tests
2022-03-17 12:10:18 -07:00
A.J. Beamon
05495908b8
Implement some tenant tests
2022-03-17 12:10:18 -07:00
A.J. Beamon
41d1e4b5d5
Fix several instances where we were converting keys, ranges, and key selectors into strings before passing them into trace events. This had the effect of double escaping certain characters.
2022-03-04 13:58:36 -08:00
Xiaoge Su
abf73047ca
Enforce std:: specifier rather than using namespace
2021-09-16 19:40:28 -07:00
sfc-gh-tclinkenbeard
5c2d7b6080
Create RangeResult type alias
2021-05-03 13:14:16 -07:00
FDB Formatster
df90cc89de
apply clang-format to *.c, *.cpp, *.h, *.hpp files
2021-03-10 10:18:07 -08:00
Chaoguang Lin
998ca0dcdf
Narrow the ExceptionContract to the specific \xff\xff/status/json
2021-02-23 23:09:28 -08:00
Chaoguang Lin
24fc81b56c
Catch special key error in FuzzApiCorrectness test
2021-02-22 12:29:08 -08:00
Andrew Noyes
4ee97c0784
Use clang-tidy to automatically fix missing overrides
...
Use `clang-tidy -p . $file -checks='-*,modernize-use-override' -header-filter='.*' -fix`
to fix missing overrides, and then use git clang-format to reformat just
those changes. This went pretty well for most files.
Formatting the following files went off the rails, so I'm going to
follow up with a commit that's just clang-tidy and no clang-format.
- fdbclient/DatabaseBackupAgent.actor.cpp
- fdbclient/FileBackupAgent.actor.cpp
- fdbserver/OldTLogServer_4_6.actor.cpp
- fdbmonitor/SimpleIni.h
- fdbserver/workloads/ClientTransactionProfileCorrectness.actor.cpp
2021-01-26 02:04:12 +00:00
sfc-gh-tclinkenbeard
cf4c8e375f
Merge remote-tracking branch 'origin/release-6.3' into merge
2020-10-29 22:15:41 -07:00
Chaoguang Lin
c4dc2f0cfb
update comment for disabling checkWritesEnable in FuzzApiCorrectness
2020-10-21 16:34:36 -07:00
Chaoguang Lin
8d670f3617
fix comments
2020-10-21 15:39:11 -07:00
Chaoguang Lin
8d937a56f2
Throw operation_failed() if dd not found when calling ddMetricsRequestServer
...
Remove time_out error in DDMetricsList rpc
Add retry logic for dd special key when dd not found
Update FuzzApiCorrectness test
2020-10-21 15:28:03 -07:00
Young Liu
8cc3e4d3c6
Merge release-6.3 into master
2020-10-19 22:51:56 -07:00
Chaoguang Lin
3109aa7221
(Previous commit did not catch the change)Increase the probability to generate keys after \xff\xff to test special key framework code
2020-10-15 14:11:04 -07:00
Chaoguang Lin
c145dd5824
Increase the probability to generate keys after \xff\xff to test special key framework code
2020-10-15 14:09:27 -07:00
Chaoguang Lin
bf00369576
getRange only enters special key space codepath when both begin key and end key are in (\xff\xff, \xff\xff\xff)
2020-10-14 16:57:38 -07:00
sfc-gh-tclinkenbeard
7f0d14c8e4
Modernize/refactor workloads directory
2020-10-04 22:29:07 -07:00
A.J. Beamon
60efc5d44b
Don't set SPECIAL_KEY_SPACE_ENABLE_WRITES randomly in Fuzz API test
2020-09-09 12:40:05 -07:00
Chaoguang Lin
8a5fde1b85
change SPECIAL_KEY_SPACE_CHANGE_CONFIGURATION to SPECIAL_KEY_SPACE_ENABLE_WRITES
2020-07-28 12:03:00 -07:00
Chaoguang Lin
c7206aedbf
Add special keys writes handling in FuzziApiCorrectness workload
2020-07-19 19:16:52 -07:00
A.J. Beamon
9b3898db05
Ignore throttling errors in fuzz tester
2020-06-05 12:57:45 -07:00
Andrew Noyes
4dc458d93c
Allow error_code_special_keys_no_module_found
...
When getting a special key and the relaxed option isn't set
2020-05-11 00:18:40 +00:00
Andrew Noyes
8bd5dcaff8
Merge branch 'master' into atn34/special-key-versioning
2020-05-09 15:34:20 -07:00
A.J. Beamon
02307ba7b6
Merge branch 'master' into transaction-tagging
...
# Conflicts:
# fdbclient/DatabaseContext.h
2020-05-09 07:50:29 -07:00
Andrew Noyes
c4288d698c
Update tests to understand SPECIAL_KEY_SPACE_RELAXED
2020-05-08 05:37:37 +00:00
Andrew Noyes
b7cd6b20e8
Allow range reads to specialKeys.end
2020-05-01 23:07:58 +00:00
A.J. Beamon
6ada5359b8
Merge branch 'master' into transaction-tagging
2020-04-29 14:27:21 -07:00
A.J. Beamon
d0cb3ec538
FuzzApiCorrectness no longer expects an error when reading the special keys keyspace
2020-04-28 17:01:35 -07:00
A.J. Beamon
0e572c8833
Fix a couple correctness issues
2020-04-17 10:26:39 -07:00
Andrew Noyes
56f1ff7ff6
Test client-side buggify in simulation
2019-12-09 12:55:23 -08:00
Andrew Noyes
2aeb9e0cbf
Fix UBSAN report
2019-12-03 16:20:39 -08:00
A.J. Beamon
ef801a6432
Rename LargePacket warnings to distinguish between sent and received packets. Also remove Net2_ prefix from packet size trace events.
2019-11-12 09:23:46 -08:00
Evan Tschannen
bbef631872
fix: do not access optionInfo unless the option already exists in the map
2019-07-10 18:48:54 -07:00
A.J. Beamon
5f55f3f613
Replace g_random and g_nondeterministic_random with functions deterministicRandom() and nondeterministicRandom() that return thread_local random number generators. Delete g_debug_random and trace_random. Allow only deterministicRandom() to be seeded, and require it to be seeded from each thread on which it is used.
2019-05-10 14:01:52 -07:00
Evan Tschannen
d126730b4d
fixed a spurious test error where process_behind was treated as an error
2019-04-08 17:09:54 -07:00
Balachandar Namasivayam
2a47fbb5a2
Fix tab spaces again
2019-03-01 15:30:40 -08:00