Commit Graph

10762 Commits

Author SHA1 Message Date
Chaoguang Lin e348caf654 Add module concept explanation into special-key-space documentation 2020-05-15 18:05:12 -07:00
Meng Xu 9c6a8a6386
Merge pull request #3135 from sfc-gh-clin/improvement-on-special-key-space
Improvement on special key space
2020-05-15 17:39:13 -07:00
Chaoguang Lin 8597b38d10 Add an assertion in SingleSpecialKeyImpl 2020-05-15 16:34:43 -07:00
Chaoguang Lin 120f07247a Rename a test function name in special-key-space correctness test 2020-05-15 16:34:43 -07:00
Chaoguang Lin 87ac003967 add tests for no_module_found error, fix one bug caught by the test 2020-05-15 16:34:43 -07:00
Chaoguang Lin 032bc59cdb Add tests for special_keys_cross_module_read cases, fixed one corner case 2020-05-15 16:34:43 -07:00
Chaoguang Lin 47f4f7085e update special-key-space comments 2020-05-15 16:34:43 -07:00
Chaoguang Lin 2b84c3224f update special-key-space comments 2020-05-15 16:34:43 -07:00
Chaoguang Lin 4a13107805 Add a test for special_keys_cross_module_read, fix two bugs, add several TODOs 2020-05-15 16:34:43 -07:00
Chaoguang Lin 8cc8ceb09c Add check for range read cross module boundary, maybe improved later 2020-05-15 16:34:43 -07:00
Chaoguang Lin 8ab792d58b Add assertions that results are empty if no conflicts happen 2020-05-15 16:34:43 -07:00
Chaoguang Lin e93beee923 Update error tracking in read/write conflict range 2020-05-15 16:34:43 -07:00
Chaoguang Lin a65f767997 Using coinflip() to simplify the code 2020-05-15 16:34:43 -07:00
Chaoguang Lin 3ea1f8472a Revert the wrong commit that changed RandomUnitTest.txt 2020-05-15 16:34:43 -07:00
Chaoguang Lin c61e198e40 Using enum class instead of enum 2020-05-15 16:34:43 -07:00
Chaoguang Lin 43a28c254a fix the bug when moving over null-impl-range 2020-05-15 16:34:42 -07:00
Chaoguang Lin e4655f33fc use std::unordered_map and ::at to get values 2020-05-15 16:34:42 -07:00
Chaoguang Lin e1c4e5f619 Add enums for special-key-space modules and refactor related code 2020-05-15 16:34:42 -07:00
Chaoguang Lin 944f87e17b Refactor special-key-space code that handles the normalization of keySelectors 2020-05-15 16:34:42 -07:00
Chaoguang Lin 03e395b353 Rename pks to sks, as the shorthand for special-key-space in header file 2020-05-15 16:34:42 -07:00
Chaoguang Lin 0e6d67aa5f Rename pks to sks, as the shorthand for special-key-space 2020-05-15 16:34:42 -07:00
chaoguang f605c8d74f Narrow keyrange of special-key-space to [\xff\xff, \xff\xff\xff). Initilize new ones in correctness tests 2020-05-15 16:34:42 -07:00
chaoguang da1334511a Adding a reverse operation for values in special-key-space correctness tests 2020-05-15 16:34:42 -07:00
chaoguang 7952333301 Use coinflip() to simplify special-key-space correctness test 2020-05-15 16:34:42 -07:00
chaoguang bb1b5c4f9d update special-key-space comments 2020-05-15 16:34:42 -07:00
chaoguang c6a09559ee Allow multiple clients in report-conflicting-keys correctness test 2020-05-15 16:34:42 -07:00
chaoguang f5c71d8419 Allow multiple clients in special-key-space correctness test 2020-05-15 16:34:42 -07:00
A.J. Beamon 14b23c146f Support throttling and unthrottling tags by priority and their auto/manual state in fdbcli. 2020-05-15 12:47:55 -07:00
A.J. Beamon c1fc78489d
Merge pull request #3169 from tclinken/remove-clockticks-and-errorcount
Removed uses of outdated cpuTicks and errorCounts
2020-05-15 11:56:33 -07:00
tclinken 7003a68ba1 Removed outdated comments and errorCounts() declaration 2020-05-15 11:04:26 -07:00
Jingyu Zhou 89ae1200dd Increase backup worker memory buffer size in simulation
Lower limit causes backup worker to become stuck.
2020-05-15 09:45:52 -07:00
A.J. Beamon d3f465fd56
Merge pull request #3102 from mpilman/features/trace-roles
Emit traces regularly about role assignment
2020-05-15 08:12:25 -07:00
Steve Atherton 7cc8e281f2 Accidental override on non inherited function, which strangely only broke the Windows build. 2020-05-15 06:47:24 -07:00
Steve Atherton 0538edf7e7 Lazy / deferred subtree deletion had a few different names in the code, normalized everything to LazyClear. Removed accidental printfs. 2020-05-15 02:15:02 -07:00
Steve Atherton 32f4639168 Refactored page remap removal. The process is now called remap cleanup, does batches of remap entries in parallel, coalesces remaps of the same page ID to skip unnecessary writes, and has some knobs for controlling it. FIFOQueue now has peek() to support remap cleanup version lag limits. Added counters for remap cleanup and lazy subtree deletion. Refactored Redwood counters, normalized and grouped their names. 2020-05-15 02:10:51 -07:00
Jingyu Zhou 01eff0fc03 Fix memory bytes accounting
Avoid duplicated counting of arena memory since messages from peek cursor can
share arena.
2020-05-14 19:59:54 -07:00
A.J. Beamon 3ee4912312
Merge pull request #3152 from ajbeamon/tag-throttling-status-improvements
Add and fix tag throttling status fields
2020-05-14 16:08:05 -07:00
A.J. Beamon b9fea57bd3
Merge pull request #3173 from mpilman/bugfixes/ratekeeper-trace-id
Pass Ratekeeper ID to all RK traces
2020-05-14 16:07:34 -07:00
A.J. Beamon f1477b09e9 Better hint and completion help with throttle command in fdbcli. 2020-05-14 16:04:03 -07:00
A.J. Beamon b49eb0f67a Balance available memory based on the limits set for each process. Don't report more available memory than the limit. 2020-05-14 15:49:59 -07:00
Markus Pilman 2cdcab5aa7 address review comments 2020-05-14 14:54:38 -07:00
Markus Pilman 5230668a76 Pass Ratekeeper ID to all RK traces 2020-05-14 14:17:43 -07:00
A.J. Beamon 6a75ac4566
Merge pull request #3163 from atn34/atn34/tsan
Disable TSAN + STATIC_LINK_LIBCXX
2020-05-14 13:51:08 -07:00
Markus Pilman eaaceab845 fixed compiler issues 2020-05-14 13:48:19 -07:00
Jingyu Zhou 17915e13b0 Limit memory usage of backup workers 2020-05-14 13:24:56 -07:00
Jingyu Zhou 1a35efe43c Add an assertion: mutation version >= log's begin version
This is to check that no version's data are split into two files.
2020-05-14 12:06:13 -07:00
Alvin Moore 05dd28aee9
Merge pull request #3131 from ajbeamon/golang-xerrors
golang: unwrap errors for retry
2020-05-14 11:24:34 -07:00
A.J. Beamon 594a07ce2b Merge branch 'release-6.3' into golang-xerrors 2020-05-14 10:35:54 -07:00
Markus Pilman c2bc75516f Merge branch 'release-6.3' of github.com:apple/foundationdb into features/trace-roles 2020-05-14 10:34:53 -07:00
Alvin Moore a160f9199f
Merge pull request #3171 from apple/release-6.3
Merge Release 6.3 into Master
2020-05-14 10:00:47 -07:00