Commit Graph

138 Commits

Author SHA1 Message Date
Xiaoxi Wang df9b21169d change shared_ptr to Reference 2022-09-27 11:22:47 -07:00
Xiaoxi Wang 1194774d54 rename dbProcessor to db; rename getDb() to context() 2022-09-23 15:35:39 -07:00
Xiaoxi Wang 11a6cba2c6 rename dbProcessor to db; readability improvement 2022-09-22 17:11:07 -07:00
Xiaoxi Wang e7a280ec03 format code 2022-09-21 20:49:39 -07:00
Xiaoxi Wang 97fd5878d9 change DDTeamCollection constructor 2022-09-20 13:00:28 -07:00
A.J. Beamon 4fd64630e8 Convert literal string ref instances to use _sr suffix 2022-09-19 11:35:58 -07:00
Xiaoxi Wang dab8bcd109 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/wiggler-tss 2022-08-12 15:27:50 -07:00
Xiaoxi Wang 9133d4e16d
Merge pull request #7803 from sfc-gh-xwang/feature/main/ddvisibility
Add server selection counter in DDQueue
2022-08-12 15:10:25 -07:00
Xiaoxi Wang b131dc9692 make getNextWigglingServerID() consider TSS recruitment;add unittest 2022-08-12 13:44:29 -07:00
Xiaoxi Wang 8b9684ae40 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/wiggler-tss 2022-08-12 10:48:37 -07:00
Xiaoxi Wang 860ffbc51e getTargetTSSInDC() method 2022-08-12 10:47:39 -07:00
Xiaoxi Wang 4a552f1fb9
Merge pull request #7829 from sfc-gh-xwang/fix/main/AsanOOM
Fix heap-use-after-free in storage wiggler unit test
2022-08-11 23:19:48 -07:00
Manuel Fontan 718560dad3
Update DDTeamCollection.actor.cpp
Fix Typo
2022-08-11 15:58:15 +02:00
Xiaoxi Wang 85916e26f4 remove pqCanCheck because it's unnecessary 2022-08-09 10:28:02 -07:00
Xiaoxi Wang 97f654adbb disable default constructor of RelocateShard 2022-08-08 22:18:48 -07:00
Xiaoxi Wang 769b503d17 fix RelocateShard invalid initialized bug (remove RelocationReason::INVALID 2022-08-08 20:43:35 -07:00
Xiaoxi Wang 753d096ae1 fix unit test bug; pass 100k 2022-08-03 19:20:52 -07:00
Xiaoxi Wang 327fe33491 refactor for direct test getNextWigglingServerID through unit test 2022-08-03 17:16:38 -07:00
Xiaoxi Wang 99bfc2406a update onCheck() and unit test; format code 2022-08-03 11:31:59 -07:00
Xiaoxi Wang 2cd15073d5 make storage wiggler support SS_MIN_AGE 2022-08-02 16:21:41 -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
Xiaoxi Wang f5a81154ef move takeMoveKeysLock to DDTxnProcessor 2022-07-08 14:11:31 -07:00
He Liu bc5bfaffda
Shard based move (#6981)
* Shard based move.

* Clean up.

* Clear results on retry in getInitialDataDistribution.

* Remove assertion on SHARD_ENCODE_LOCATION_METADATA for compatibility.

* Resolved comments.

Co-authored-by: He Liu <heliu@apple.com>
2022-07-07 20:49:16 -07:00
Xiaoxi Wang a5054b2beb move getServerListAndProcessClasses to NativeAPI 2022-06-23 15:28:45 -07:00
Bharadwaj V.R 8cf2be030f
Build a TenantCache for use by DD (#7207)
* Add an DD tenant-cache-assembly actor
* Add basic tenant list monitoring for tenant cache. 
* Update DD tenant cache refresh to be more efficient and unit-testable
* Remove the DD prefix in the tenant cache class name (and associated impl and UT class names); there is nothing specific to DD in it; DD uses it; other modules may use it in the future
* Disable DD tenant awareness by default
2022-06-21 16:29:30 -07:00
Xiaoxi Wang 6bb4e341f9
Merge pull request #7110 from sfc-gh-xwang/features/ppw-pause-state
Adding paused/running wiggling status to status json and also the last running/paused timestamp
2022-06-16 14:27:18 -07:00
Xiaoxi Wang a311cc28cc solve some comments 2022-06-16 11:07:21 -07:00
Bharadwaj V.R 418205eeab Use bindings for brevity in DDTC UT and a few places where server_info is iterated over 2022-06-06 11:56:48 -07:00
Bharadwaj V.R 083fe01022 More uses of structured bindings to avoid use of .first and .second in pairs 2022-06-02 23:07:23 -07:00
Xiaoxi Wang fec8a47a5d makeReference 2022-05-23 16:50:04 -07:00
Xiaoxi Wang 73624bcd2a Merge remote-tracking branch 'upstream/main' into readaware 2022-05-23 11:17:38 -07:00
Xiaoxi Wang 54e56af3db solve some review comments 2022-05-23 11:04:37 -07:00
Xiaoxi Wang 909a7a92a1 rename preferLowerDiskUtil 2022-05-22 23:32:13 -07:00
Xiaoxi Wang 7541fb9a25 address some review comments 2022-05-18 13:39:07 -07:00
Bharadwaj V.R 30922268d7 Minor readability improvement (I believe) to DD code; mostly, replacing .first, .second of pairs with better names through bindings) 2022-05-13 13:03:00 -07:00
Xiaoxi Wang 2717cee1f9 Merge branch 'features/read-skew' into readaware 2022-05-09 16:12:09 -07:00
Xiaoxi Wang 487a81b62c add lastStateChange 2022-05-08 23:05:43 -07:00
Xiaoxi Wang 13bbd062c4 add storage wiggler state 2022-05-08 22:06:11 -07:00
Xiaoxi Wang 03607675e8 refactor GetTeamRequest 2022-05-04 17:42:49 -07:00
Xiaoxi Wang a3d0b005dc reset several method use getShardMetrics 2022-05-04 00:00:03 -07:00
Xiaoxi Wang 69985ba251 Merge branch 'main' of https://github.com/apple/foundationdb into readaware 2022-05-02 10:53:22 -07:00
Xiaoxi Wang 9a521ad36f Merge branch 'main' of https://github.com/apple/foundationdb into ppw-store 2022-05-02 10:48:29 -07:00
A.J. Beamon 5eedcafcfb Mark a team as unhealthy when it is removed 2022-04-29 12:40:41 -07:00
Xiaoxi Wang 4724a099e2 format code 2022-04-27 20:42:31 -07:00
Xiaoxi Wang 101b6717e3 remove TSS storage metadata part 2022-04-27 16:22:13 -07:00
Xiaoxi Wang 1f046e4be5 fix excludedServer overwritten bug; change some trace event field 2022-04-27 13:05:02 -07:00
Xiaoxi Wang 2ede89b623 fix getUint64 bug 2022-04-25 14:46:50 -07:00
Xiaoxi Wang e8477e15ce Merge remote-tracking branch 'upstream/main' into readaware 2022-04-25 09:55:52 -07:00
Xiaoxi Wang adeaf52db3
Merge branch 'apple:main' into ppw-store 2022-04-25 09:40:45 -07:00
Evan Tschannen a40c8f231a fix: perpetual wiggle would not react to a pause that happened while starting the wiggle 2022-04-24 20:35:02 -07:00