FastRestore:Remove debug trace for debugging connection errors

This commit is contained in:
Meng Xu 2020-02-04 17:06:02 -08:00
parent 3b57bf1781
commit 08443ed18d
2 changed files with 0 additions and 6 deletions

View File

@ -728,9 +728,7 @@ ACTOR Future<MonitorLeaderInfo> monitorProxiesOneGeneration( Reference<ClusterCo
incorrectTime = Optional<double>();
}
TraceEvent("MXTEST_MonitorProxiesOneGenerationStart");
state ErrorOr<CachedSerialization<ClientDBInfo>> rep = wait( clientLeaderServer.openDatabase.tryGetReply( req, TaskPriority::CoordinationReply ) );
TraceEvent("MXTEST_MonitorProxiesOneGenerationEnd").detail("Rep", rep.present());
if (rep.present()) {
if( rep.get().read().forward.present() ) {
TraceEvent("MonitorProxiesForwarding").detail("NewConnStr", rep.get().read().forward.get().toString()).detail("OldConnStr", info.intermediateConnFile->getConnectionString().toString());

View File

@ -776,7 +776,6 @@ Future<Void> DatabaseContext::connectionFileChanged() {
extern IPAddress determinePublicIPAutomatically(ClusterConnectionString const& ccs);
Database Database::createDatabase( Reference<ClusterConnectionFile> connFile, int apiVersion, bool internal, LocalityData const& clientLocality, DatabaseContext *preallocatedDb ) {
TraceEvent("MX1");
if(!g_network)
throw network_not_setup();
@ -811,9 +810,7 @@ Database Database::createDatabase( Reference<ClusterConnectionFile> connFile, in
Reference<AsyncVar<ClientDBInfo>> clientInfo(new AsyncVar<ClientDBInfo>());
Reference<AsyncVar<Reference<ClusterConnectionFile>>> connectionFile(new AsyncVar<Reference<ClusterConnectionFile>>());
connectionFile->set(connFile);
TraceEvent("MX2");
Future<Void> clientInfoMonitor = monitorProxies(connectionFile, clientInfo, networkOptions.supportedVersions, StringRef(networkOptions.traceLogGroup));
TraceEvent("MX3");
DatabaseContext *db;
if(preallocatedDb) {
@ -823,7 +820,6 @@ Database Database::createDatabase( Reference<ClusterConnectionFile> connFile, in
db = new DatabaseContext(connectionFile, clientInfo, clientInfoMonitor, TaskPriority::DefaultEndpoint, clientLocality, true, false, internal, apiVersion, /*switchable*/ true);
}
TraceEvent("MX4");
return Database(db);
}