Commit Graph

171 Commits

Author SHA1 Message Date
Lukas Joswiak 1c84c04ffc Add global configuration prefix function 2021-04-14 10:56:32 -07:00
Lukas Joswiak b7cd8175be Add arena per object in global config 2021-04-14 10:56:32 -07:00
Lukas Joswiak 70c4bbe119 Fix clear range persistence issue 2021-04-14 10:56:32 -07:00
Lukas Joswiak 4a799baa1d Add clear range for global configuration 2021-04-14 10:56:32 -07:00
Lukas Joswiak 80c6048a01 Naming fixes 2021-04-14 10:56:32 -07:00
Lukas Joswiak c9b0d3dd4e Fix memory leak
The map containing global configuration data had keys of type StringRef,
referencing data allocated in history arenas. When the old history
was deleted, this memory was no longer valid and some keys would point
to garbage memory.
2021-04-14 10:56:32 -07:00
Lukas Joswiak 7bb0b3d899 Use commit version for global configuration updates
FIXME: There is a memory issue where the underlying data for values set
in the `data` field of GlobalConfig will be freed shortly after being
set.
2021-04-14 10:56:32 -07:00
Lukas Joswiak f1415412f1 Add global configuration framework implementation 2021-04-14 10:56:32 -07:00
Vishesh Yadav 2c316db94d Merge remote-tracking branch 'apple/master' into master-format-final
Also format the changes
2021-03-11 12:54:26 -08:00
FDB Formatster df90cc89de apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
Chaoguang Lin 5b4e77bb99 Update comments, add asssertions 2021-02-25 13:13:34 -08:00
Chaoguang Lin 424aae71cc Solve comments. Disable clear for ClientProfilingImpl and set the upperbound value for advanceversion 2021-02-25 13:02:56 -08:00
Chaoguang Lin 9ce9cba0e5 Merge branch 'master' of github.com:apple/foundationdb into add-advanceversion 2021-02-19 14:29:08 -08:00
Chaoguang Lin 703107332a Add special keys for profile client get/set 2021-02-19 12:22:00 -08:00
Chaoguang Lin 70098b752a Fix typo, solve comments 2021-02-18 14:23:51 -08:00
Chaoguang Lin ac860b3c22 Add advanceversion into special keys 2021-02-18 01:27:14 -08:00
Chaoguang Lin f3a849de10 Update ChangeConfig test for auto coordinators change 2021-02-16 23:55:58 -08:00
Chaoguang Lin fca7f753f8 Remove special key for coordinators' 'auto' option 2021-02-16 13:46:45 -08:00
Chaoguang Lin 9dd94499f2 Update traces 2021-02-16 13:06:25 -08:00
Chaoguang Lin 731ee8a121 Update ChangeConfig to test coordinators special keys 2021-02-16 13:01:37 -08:00
Chaoguang Lin b10959be0f format code, add trace 2021-02-08 18:52:36 -08:00
Chaoguang Lin d185ff3752 update \xff\xff/configuration/coordinators/processes 2021-02-05 00:55:34 -08:00
Chaoguang Lin c2aedb0b94 clang-format, remove comments 2021-01-29 18:20:09 -08:00
Chaoguang Lin e1182f2f86 Add coordinators to special keys 2021-01-29 11:45:52 -08:00
Trevor Clinkenbeard b305e71ece
Merge pull request #4141 from sfc-gh-anoyes/anoyes/merge-release-6.3-master
Merge release 6.3 master
2020-12-09 08:50:57 -08:00
Lukas Joswiak 54237f28ea Throw error on commit for late trace options 2020-12-07 14:43:44 -08:00
Andrew Noyes cc669f399e Merge remote-tracking branch 'upstream/release-6.3' into anoyes/merge-release-6.3-master 2020-12-07 22:26:11 +00:00
Chaoguang Lin d97523a966 Fix typo 2020-12-06 14:04:16 -08:00
Chaoguang Lin e5cad0f077 Fix the bug if boundary same as range and add comments 2020-12-04 14:58:40 -08:00
Lukas Joswiak 76142549e0 Return keys from range read in lexicographic order 2020-12-04 11:21:39 -08:00
Lukas Joswiak 3669615e4b Refactor and clean up 2020-12-03 14:06:11 -08:00
Lukas Joswiak 1f166bc183 Add options to set custom transaction ID and disable tracing 2020-11-30 14:57:17 -08:00
Chaoguang Lin cc4b282236 Remove the incorrect(unnecessary) versioning stuff, since the error is thrown by the server 2020-11-19 13:17:38 -08:00
Chaoguang Lin da39b05620 Add comments about error type change 2020-11-18 12:14:59 -08:00
Chaoguang Lin a101d3d706 Add versioning 2020-11-18 12:06:31 -08:00
Chaoguang Lin a4174d3108 Change operation_failed to dd_not_found 2020-11-18 00:18:42 -08:00
Markus Pilman bdd3dbfa7d remove duplicates 2020-11-10 14:01:07 -07:00
sfc-gh-tclinkenbeard cf4c8e375f Merge remote-tracking branch 'origin/release-6.3' into merge 2020-10-29 22:15:41 -07:00
Andrew Noyes a15bc32b14
Merge pull request #3945 from sfc-gh-clin/add-consistencycheck-to-special-keys
Add consistencycheck command to special keys
2020-10-26 10:59:17 -07:00
Chaoguang Lin bd578a0d95 clang-format 2020-10-22 18:27:58 -07:00
Chaoguang Lin 3cbed7b0d1 Add checker to make sure registered special key range following snake case naming 2020-10-22 18:25:51 -07:00
Chaoguang Lin 4c42917b1d Fix typos in comments 2020-10-22 15:36:10 -07:00
Chaoguang Lin 95654ce7e7 Change dbLocked to snake_case naming db_locked 2020-10-22 11:35:39 -07:00
Chaoguang Lin b728fe473e Add consistencycheck command to special keys 2020-10-22 11:08:54 -07:00
Chaoguang Lin dec643987f Add wait time after dd not found error 2020-10-21 16:58:23 -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 c1b4e62bde Change the trace from SevInfo to SevDebug 2020-10-15 13:55:31 -07:00
Chaoguang Lin 76440018fb Remove unnecessary error thrown when calling clear range on the lock special key range 2020-10-08 21:39:13 -07:00
Chaoguang Lin 53d3759e73 Add lock command to special key \xff\xff/dbLocked 2020-10-08 14:23:02 -07:00