foundationdb/fdbserver
Meng Xu 477fd152c0 FastRestore:Refactor code
1) Use the runRYWTransaction for simple DB access
2) Replace some printf with TraceEvent
3) Remove printf not used in debugging
4) Avoid wait inside the condition in loop-choose-when for
   the core routine of restore worker, loader and applier.
5) Rename Restore.actor.cpp to RestoreWorker.actor.cpp since
   the file only has functionalities related to restore worker.

Passed correctness test
2019-06-04 11:22:47 -07:00
..
sqlite fast restore: add data struct and assign role to nodes 2018-12-20 11:40:03 -08:00
workloads FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
ApplyMetadataMutation.h Fixed compilation errors on OS X & gcc8 2019-04-05 13:12:19 -07:00
CMakeLists.txt FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
ClusterController.actor.cpp Fix all -Wunused-variable warnings 2019-04-15 18:13:00 -07:00
ClusterRecruitmentInterface.h Add support for a client or worker having multiple issues. 2019-03-22 08:29:41 -07:00
CompactMap.cpp Adjust all includes to be relative to the root. 2018-10-19 17:35:33 +00:00
ConflictSet.h remove trailing whitespace from our copyright headers ; fixed formatting of python setup.py 2018-02-21 10:25:11 -08:00
CoordinatedState.actor.cpp Fix minor IDE build errors 2019-02-19 15:16:59 -08:00
CoordinatedState.h Reverting changes from merge of master into release-5.2 (b25810711c). Note that we never intend to release master into release-5.2, but if we did we would need to revert this commit. 2018-03-06 10:15:04 -08:00
Coordination.actor.cpp Remove trace-calls to printable (in non-workloads) 2019-04-05 13:12:19 -07:00
CoordinationInterface.h Replace & operator with variadic function 2018-12-28 11:33:42 -08:00
CoroFlow.actor.cpp Address review comments from #1446 2019-04-16 09:48:15 -07:00
CoroFlow.h remove trailing whitespace from our copyright headers ; fixed formatting of python setup.py 2018-02-21 10:25:11 -08:00
DBCoreState.h removed LocalitySetRef and IRepPolicyRef typedefs, because for clarity the Ref suffix is reserved for arena allocated objects instead of reference counted objects. 2019-03-13 13:14:39 -07:00
DataDistribution.actor.cpp Merge pull request #1370 from jzhou77/fix-unreferenced 2019-04-09 11:49:45 -07:00
DataDistribution.actor.h Fix OPEN_FOR_IDE build errors 2019-04-05 16:30:42 -07:00
DataDistributionQueue.actor.cpp Addressed code review comments 2019-04-05 13:12:20 -07:00
DataDistributionTracker.actor.cpp Addressed code review comments 2019-04-05 13:12:20 -07:00
DataDistributorInterface.h Monitor Ratekeeper and DataDistributor to use stateless processes 2019-03-14 15:00:57 -07:00
DiskQueue.actor.cpp Implement limiting how many bytes recovery will read. 2019-03-18 15:09:43 -07:00
IDiskQueue.h Implemented Traceable for printable types 2019-04-05 13:12:19 -07:00
IKeyValueStore.h Address review comments. 2018-10-19 18:55:35 -07:00
IPager.h Many bug fixes related to concurrent page operations and pager shutdown. 2018-11-06 19:31:16 -08:00
IVersionedStore.h Adjust all includes to be relative to the root. 2018-10-19 17:35:33 +00:00
IndirectShadowPager.actor.cpp Fix all -Wunused-variable warnings 2019-04-15 18:13:00 -07:00
IndirectShadowPager.h Many bug fixes related to concurrent page operations and pager shutdown. 2018-11-06 19:31:16 -08:00
KeyValueStoreCompressTestData.actor.cpp Fix minor IDE build errors 2019-02-19 15:16:59 -08:00
KeyValueStoreMemory.actor.cpp Addressed code review comments 2019-04-05 13:12:20 -07:00
KeyValueStoreSQLite.actor.cpp Merge pull request #1370 from jzhou77/fix-unreferenced 2019-04-09 11:49:45 -07:00
Knobs.cpp FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
Knobs.h FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
LatencyBandConfig.cpp Remove trace-calls to printable (in non-workloads) 2019-04-05 13:12:19 -07:00
LatencyBandConfig.h Merge commit '3b2700d25334c53d13496ca16682642aac951beb' into track-server-request-latencies 2019-01-24 11:43:26 -08:00
LeaderElection.actor.cpp Listen to multiple addresses and start using vector<NetworkAdddress> in Endpoint 2018-12-13 13:36:52 -08:00
LeaderElection.h Reverting changes from merge of master into release-5.2 (b25810711c). Note that we never intend to release master into release-5.2, but if we did we would need to revert this commit. 2018-03-06 10:15:04 -08:00
LogProtocolMessage.h Replace & operator with variadic function 2018-12-28 11:33:42 -08:00
LogRouter.actor.cpp Merge pull request #1370 from jzhou77/fix-unreferenced 2019-04-09 11:49:45 -07:00
LogSystem.h renamed BinaryWriter.toStringRef() to .toValue(), because the function now returns a Standalone<StringRef>() 2019-03-28 11:52:50 -07:00
LogSystemConfig.h removed LocalitySetRef and IRepPolicyRef typedefs, because for clarity the Ref suffix is reserved for arena allocated objects instead of reference counted objects. 2019-03-13 13:14:39 -07:00
LogSystemDiskQueueAdapter.actor.cpp Merge branch 'master' into feature-fix-force-recovery 2019-02-22 14:38:13 -08:00
LogSystemDiskQueueAdapter.h Implement limiting how many bytes recovery will read. 2019-03-18 15:09:43 -07:00
LogSystemPeekCursor.actor.cpp Fix all -Wunused-variable warnings 2019-04-15 18:13:00 -07:00
MasterInterface.h Merge remote-tracking branch 'apple/master' into task/tls-upgrade 2019-02-15 20:37:07 -08:00
MasterProxyServer.actor.cpp Merge pull request #1370 from jzhou77/fix-unreferenced 2019-04-09 11:49:45 -07:00
MemoryPager.actor.cpp Adjust all includes to be relative to the root. 2018-10-19 17:35:33 +00:00
MemoryPager.h Adjust all includes to be relative to the root. 2018-10-19 17:35:33 +00:00
MoveKeys.actor.cpp Addressed code review comments 2019-04-05 13:12:20 -07:00
MoveKeys.actor.h Use ACTOR forward declarations in MoveKeys 2019-02-19 15:16:59 -08:00
NetworkTest.h Replace & operator with variadic function 2018-12-28 11:33:42 -08:00
OldTLogServer_4_6.actor.cpp Remove trace-calls to printable (in non-workloads) 2019-04-05 13:12:19 -07:00
OldTLogServer_6_0.actor.cpp Remove trace-calls to printable (in non-workloads) 2019-04-05 13:12:19 -07:00
Orderer.actor.h Adjust all includes to be relative to the root. 2018-10-19 17:35:33 +00:00
PrefixTree.h Fixed several minor code issues 2019-01-24 14:43:12 -08:00
QuietDatabase.actor.cpp Fix warning on -Wformat 2019-04-09 15:02:45 -07:00
QuietDatabase.h replaced std::pair<WorkerInterface,ProcessClass> with a struct named WorkerDetails 2019-03-08 11:25:07 -05:00
Ratekeeper.actor.cpp Add file changes that I accidentally failed to commit; fix naming issue in worker. 2019-03-27 08:41:19 -07:00
RatekeeperInterface.h First round of review comment fixes for PR#1307 2019-03-19 11:29:19 -07:00
RecoveryState.h fix: kill all tlogs in one region prevents the remote logs from recovering in that region, do not allow that to prevent us from configuring usable_regions=1. 2018-07-05 00:08:51 -07:00
Resolver.actor.cpp Fix warnings on unused variables 2019-04-01 14:00:20 -07:00
ResolverInterface.h Merge commit '048bfc5c368063d9e009513078dab88be0cbd5b0' into task/tls-upgrade-2 2019-01-24 17:43:06 -08:00
RestoreApplier.actor.cpp FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
RestoreApplier.actor.h FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
RestoreCommon.actor.cpp FastRestore:Add comments for each restore file 2019-05-12 21:53:43 -07:00
RestoreCommon.actor.h FastRestore:Refactor distribute workload for version batch 2019-05-30 17:39:50 -07:00
RestoreLoader.actor.cpp FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
RestoreLoader.actor.h FastRestore:Remove CMDUID 2019-05-29 13:48:04 -07:00
RestoreMaster.actor.cpp FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
RestoreMaster.actor.h FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
RestoreRoleCommon.actor.cpp FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
RestoreRoleCommon.actor.h FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
RestoreUtil.actor.cpp FastRestore:Remove CMDUID 2019-05-29 13:48:04 -07:00
RestoreUtil.h FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
ServerDBInfo.h Remove lastLimited from data distribution 2019-03-07 13:16:20 -08:00
SimulatedCluster.actor.cpp Merge branch 'apple/master' into mengxu/performant-restore-PR 2019-04-18 18:02:45 -07:00
SimulatedCluster.h Fix the other half of simulation requiring a TLS Plugin. 2018-04-30 18:26:29 -07:00
SkipList.cpp Remove noexcept macro and replace with BOOST_NOEXCEPT. 2019-03-05 22:06:12 -08:00
Status.actor.cpp Merge branch 'apple/master' into mengxu/performant-restore-PR 2019-04-18 18:02:45 -07:00
Status.h Add support for a client or worker having multiple issues. 2019-03-22 08:29:41 -07:00
StorageMetrics.actor.h Remove trace-calls to printable (in non-workloads) 2019-04-05 13:12:19 -07:00
StorageMetrics.h Adjust all includes to be relative to the root. 2018-10-19 17:35:33 +00:00
TLogInterface.h Merge commit '048bfc5c368063d9e009513078dab88be0cbd5b0' into task/tls-upgrade-2 2019-01-24 17:43:06 -08:00
TLogServer.actor.cpp FastRestore:Remove dbprintf 2019-05-17 17:34:42 -07:00
TagPartitionedLogSystem.actor.cpp renamed BinaryWriter.toStringRef() to .toValue(), because the function now returns a Standalone<StringRef>() 2019-03-28 11:52:50 -07:00
TesterInterface.actor.h Several bugfixes to make fdb build on non-ide 2019-02-19 15:16:59 -08:00
VFSAsync.cpp Fix all -Wunused-variable warnings 2019-04-15 18:13:00 -07:00
VersionedBTree.actor.cpp Fix all -Wunused-variable warnings 2019-04-15 18:13:00 -07:00
WaitFailure.actor.cpp Adjust all includes to be relative to the root. 2018-10-19 17:35:33 +00:00
WaitFailure.h remove trailing whitespace from our copyright headers ; fixed formatting of python setup.py 2018-02-21 10:25:11 -08:00
WorkerInterface.actor.h Changes to ratekeeper camel case 2019-03-27 08:24:25 -07:00
fdbserver.actor.cpp FastRestore:Use NotifiedVersion to deduplicate requests 2019-05-22 22:09:54 -07:00
fdbserver.vcxproj FastRestore:Refactor code 2019-06-04 11:22:47 -07:00
fdbserver.vcxproj.filters Separate Ratekeeper from data distribution. 2019-03-07 13:16:20 -08:00
local.mk Gperftools Profiling fix. 2019-04-01 14:42:18 -07:00
masterserver.actor.cpp Remove trace-calls to printable (in non-workloads) 2019-04-05 13:12:19 -07:00
networktest.actor.cpp Change Endpoint::address(NetworkAddress) to vector<NetworkAddress> 2018-12-13 13:36:52 -08:00
pubsub.actor.cpp Use proper fwd decl in NativeAPI 2019-02-19 15:16:59 -08:00
pubsub.h Use proper fwd decl in NativeAPI 2019-02-19 15:16:59 -08:00
storageserver.actor.cpp Merge branch 'apple/master' into mengxu/performant-restore-PR 2019-04-18 18:02:45 -07:00
template_fdb.h remove trailing whitespace from our copyright headers ; fixed formatting of python setup.py 2018-02-21 10:25:11 -08:00
tester.actor.cpp Merge branch 'apple/master' into mengxu/performant-restore-PR 2019-04-18 18:02:45 -07:00
worker.actor.cpp Merge pull request #1443 from etschannen/master 2019-04-10 17:43:07 -07:00