Commit Graph

80 Commits

Author SHA1 Message Date
Xiaoxi Wang aba9d85560 merge main 2022-04-06 09:57:52 -07:00
Xiaoxi Wang 20a0b8d761 enable sim skip; add readInFlight methods and inflight Penalty; add delayed inflight substraction: 2022-03-31 09:57:00 -07:00
Xiaoxi Wang 2829415f1f update unit test 2022-03-28 23:52:40 -07:00
Xiaoxi Wang b15f0eb2b0 add ReadInFlight 2022-03-28 14:20:07 -07:00
Steve Atherton 31812d7ad3 Fix aggressive storage migration mode to behave as documented and migrates all storages at once. 2022-03-28 09:22:24 -07:00
Xiaoxi Wang 9799b3dc99 change teamSorter details 2022-03-24 22:20:58 -07:00
Xiaoxi Wang d93b57dd88 conflict solving 2022-03-24 20:45:51 -07:00
Xiaoxi Wang 510a1875d1 random unit test 2022-03-24 18:38:50 -07:00
Xiaoxi Wang 1b631a9263 solve conflict with main 2022-03-24 16:29:11 -07:00
Xiaoxi Wang cd5ad654ae unittest 2022-03-24 16:18:18 -07:00
Xiaoxi Wang b811a62b65 fix teamSorter usage bug 2022-03-24 13:16:10 -07:00
Xiaoxi Wang e6893ba0b6 change unit test to cover edge case 2022-03-24 13:09:39 -07:00
sfc-gh-tclinkenbeard 1ab18aae6a Fix calls to DDTeamCollection::addTeam 2022-03-16 14:21:58 -07:00
sfc-gh-tclinkenbeard eaa699c203 Merge remote-tracking branch 'origin/main' into ddteamcollection-boolean-param 2022-03-16 13:38:28 -07:00
Xiaoxi Wang 7855dc70f2 add unit test 2022-03-14 16:43:02 -07:00
sfc-gh-tclinkenbeard 5fa135c8ad Merge remote-tracking branch 'origin/main' into ddteamcollection-boolean-param 2022-03-14 16:35:16 -07:00
Xiaoxi Wang 87640673f7 add hasWigglePausedServer method; add new sort criteria 2022-03-14 16:02:42 -07:00
Bharadwaj V.R 8be519a5d8 Make getServerMetrics private to TCServerInfo class and rename some methods to remove redundant reference to 'server' 2022-03-12 17:30:50 -04:00
sfc-gh-tclinkenbeard 7a5105a9d5 Add type safety to boolean parameters in DDTeamCollection 2022-03-11 00:10:12 -04:00
Xiaoxi Wang 8d20ee8432 change storage metrics of read sample calculation 2022-03-07 17:36:43 -08:00
Xiaoxi Wang 970a84bf63 fix teamSorter setting 2022-03-03 12:58:45 -08:00
Xiaoxi Wang a28b0f4361 Merge branch 'main' of https://github.com/apple/foundationdb into readaware 2022-03-03 11:15:18 -08:00
Xiaoxi Wang 87ab7d165b refactor team compare 2022-03-03 11:15:11 -08:00
Xiaoxi Wang e73c0a31e6 add wiggle_server_ids and wiggle_server_addresses in status json 2022-03-02 10:03:23 -08:00
Josh Slocum 92a888910f Fix many repeated recruitment bug 2022-03-01 12:00:53 -06:00
Trevor Clinkenbeard fe957deef8
Merge pull request #6399 from sfc-gh-bvr/fdb#4271
Introduce a new server knob and use it to test if storage servers are…
2022-02-28 13:02:23 -08:00
Xiaoxi Wang 5e74b5006e fix uninitialized member 2022-02-28 10:22:32 -08:00
Renxuan Wang f7eb66441d Try eliminating warnings in macOS and Windows CI builds.
MacOS warnings are format warnings, e.g., `format specifies type 'long' but the argument has type 'Version' (aka 'long long')`.
Windows warnings are `ACTOR does not contain a wait() statement`.
2022-02-25 19:06:57 -08:00
Andrew Noyes 7a9217a392
Add contrib/debug_determinism (#6389)
* Add contrib/debug_determinism

Add an instrumentation-based technique for debugging unseen mismatches. Also guard a few existing sources of nondeterminism that don't affect unseen with the DEBUG_DETERMINISM macro.

Also change the simulated run loop to not run as the only task inside the real run loop, since that was a source of nondeterminism.

Also fix nondeterminism from calling timer_int

* Add StorageMetadataType::currentTime

Basically a deterministic-in-simulation version of timer_int that we can
use instead of timer_int for StorageMetadataType::createdTime
2022-02-25 12:54:31 -08:00
Xiaoxi Wang a07e413eae metrics comparator; rebalanceReadLoad() 2022-02-24 16:41:01 -08:00
A.J. Beamon 250a88e682 Enforce that trace event suppression calls happen first when using trace event call chaining. Fix various instances where we weren't following this requirement. 2022-02-24 12:25:52 -08:00
Bharadwaj V.R 8cb554a006 Fix formatting issues in DDTeamCollection.actor.cpp 2022-02-23 10:21:34 -08:00
Bharadwaj V.R 102dcb30c6
Merge branch 'main' into fdb#4271 2022-02-23 10:04:19 -08:00
Bharadwaj V.R c1b0b336ce Fix merge conflicts in DDTC.actor.cpp - change serverMetrics to setServerMetrics and setTeamHealthy to markTeamUnhealthy 2022-02-17 20:41:38 -08:00
Bharadwaj V.R 49d2a56776
Merge branch 'main' into dd-utestclass 2022-02-17 20:22:07 -08:00
Bharadwaj V.R 7a17dbeacc Create DD unit test class. Start to make test-specific methods in DDTeamCollection private 2022-02-16 19:18:24 -08:00
Bharadwaj V.R cb5f44c76d
Merge branch 'apple:main' into fdb#4271 2022-02-16 10:14:50 -08:00
Bharadwaj V.R fe03e6f822 Introduce a new server knob and use it to test if storage servers are near the min bar for available space 2022-02-15 22:43:06 -08:00
sfc-gh-tclinkenbeard 32bbabefd7 Merge remote-tracking branch 'origin/main' into dd-refactor 2022-02-15 14:11:30 -08:00
Bharadwaj V.R eaef2a373e Remove superfluous wait statements in DD unit tests. They wait on the getTeam future 2022-02-14 10:11:00 -08:00
Bharadwaj V.R a14377641c Renamed a couple of test-only collection methods and make the test case waits more succinct 2022-02-13 23:53:12 -08:00
sfc-gh-tclinkenbeard e77b70c508 Encapsulate TCMachineTeamInfo fields 2022-02-12 15:50:51 -08:00
sfc-gh-tclinkenbeard 51afe403d1 Encapsulate TCMachineTeamInfo::id field 2022-02-11 22:56:16 -08:00
sfc-gh-tclinkenbeard 10f40294a3 Encapsulate TCServerInfo::teams field 2022-02-11 21:44:28 -08:00
sfc-gh-tclinkenbeard 45f68c7db7 Add TCServerInfo::removeTeamsContainingServer method 2022-02-11 21:29:52 -08:00
sfc-gh-tclinkenbeard 5bfb2669a2 Add TCServerInfo::removeTeam method 2022-02-11 21:05:45 -08:00
sfc-gh-tclinkenbeard 3959ee6c27 Encapsulate TCServerInfo::dataInFlightToServer 2022-02-11 19:41:04 -08:00
sfc-gh-tclinkenbeard 0fe4dcf469 Make several more TCServerInfo fields private 2022-02-11 19:41:04 -08:00
sfc-gh-tclinkenbeard 4aa5a329ac Encapsulate TCServerInfo::collection and TCServerInfo::tracker 2022-02-11 19:41:04 -08:00
sfc-gh-tclinkenbeard 711462dfd7 Encapsulate TCServerInfo::inDesiredDC 2022-02-11 19:41:04 -08:00