foundationdb/fdbrpc
Renxuan Wang 839af5701e
Fix bug in resolveTCPEndpoint() when hostname resolving fails. (#7375)
* Close trace file when error happens in runNetwork().

* Improve the bestCount algorithm in getLeader().

In the current implementation, if the nominees are [0,1], the chosen leader will be 1, which is an exception to other cases and our expectation that if 2 nominees have the same frequency, the one with lower id will be the leader.

* Remove unnecessary new statement.

stream will never be a nullptr.

* Move self->dnsCache out of lambda capture.

Member variables are not capture by default, thus, `host` and `service` are not captured. This somehow successfully compile, but throws std::bad_alloc or basic_string::_S_create exceptions when we call `host+":"+service` in dnsCache.remove().

* Revert unintended change.

* Address comments.
2022-06-13 20:24:30 -07:00
..
libcoroutine apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
libeio apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
ActorFuzz.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
ActorFuzz.h Update copyright header dates 2022-03-21 13:36:23 -07:00
AsyncFileCached.actor.cpp Use allocateFast4kAligned instead of duplicating its logic 2022-03-22 11:01:33 -07:00
AsyncFileCached.actor.h Use allocateFast4kAligned instead of duplicating its logic 2022-03-22 11:01:33 -07:00
AsyncFileChaos.h Clean up includes in actor header files (#7331) 2022-06-13 13:26:51 -07:00
AsyncFileEIO.actor.h Update copyright header dates 2022-03-21 13:36:23 -07:00
AsyncFileEncrypted.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
AsyncFileEncrypted.h Remove ENCRYPTION_ENABLED macro 2022-05-02 22:26:31 -07:00
AsyncFileKAIO.actor.h AsyncFileKAIO: add latency histograms 2022-03-30 10:45:04 -07:00
AsyncFileNonDurable.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
AsyncFileNonDurable.actor.h Bug fix: Killing a machine process would not wait for AsyncFileNonDurable close operations to finish, causing a later reopen of the same file in a new process to hang forever. Renamed AsyncFileNonDurable::deleteFile to closeFile for clarity. Renamed Machine deletingFiles to deletingOrClosingFiles for clarity. (#7007) 2022-04-29 14:01:18 -07:00
AsyncFileReadAhead.actor.h Update copyright header dates 2022-03-21 13:36:23 -07:00
AsyncFileWinASIO.actor.h Update copyright header dates 2022-03-21 13:36:23 -07:00
AsyncFileWriteChecker.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
AsyncFileWriteChecker.h Update copyright header dates 2022-03-21 13:36:23 -07:00
Base64UrlDecode.cpp Authz JWT support (#7279) 2022-06-02 13:22:50 +02:00
Base64UrlDecode.h Authz JWT support (#7279) 2022-06-02 13:22:50 +02:00
Base64UrlEncode.cpp Authz JWT support (#7279) 2022-06-02 13:22:50 +02:00
Base64UrlEncode.h Authz JWT support (#7279) 2022-06-02 13:22:50 +02:00
CMakeLists.txt Clean up includes in actor header files (#7331) 2022-06-13 13:26:51 -07:00
ContinuousSample.h Update copyright header dates 2022-03-21 13:36:23 -07:00
FailureMonitor.actor.cpp Merge remote-tracking branch 'origin/main' into features/private-request-streams 2022-04-07 13:29:27 -06:00
FailureMonitor.h Merge remote-tracking branch 'origin/main' into features/private-request-streams 2022-04-07 13:29:27 -06:00
FlowProcess.actor.h Remote ikvs debugging (#6465) 2022-03-31 17:08:59 -07:00
FlowTests.actor.cpp OpenTelemetry Tracing Perf Fixes (#6990) 2022-05-02 14:56:51 -05:00
FlowTransport.actor.cpp formatting fix 2022-05-25 17:16:56 -05:00
FlowTransport.h Restart protocol monitoring logic when we cycle the coordinator, even if its the same coordinator. Add some defensive code in case we fetch the protocol version for an absent peer. (#6397) 2022-05-19 10:00:23 +02:00
HTTP.actor.cpp Fix compatibility issue of s3 backup 2022-05-25 09:48:54 -05:00
HTTP.h Interface to enable clients to send/receive REST requests/responses (#6866) 2022-04-27 12:17:52 -07:00
HealthMonitor.actor.cpp Fix valgrind error in HealthMonitor 2022-04-07 15:48:06 -07:00
HealthMonitor.h Allow worker health monitor to report recent destroyed peers who currently have roles in transaction systems 2022-04-06 13:33:50 -07:00
IAsyncFile.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
IAsyncFile.h Update copyright header dates 2022-03-21 13:36:23 -07:00
IPAllowList.cpp Address review comments 2022-04-11 09:17:10 -06:00
IPAllowList.h Address review comments 2022-04-11 09:17:10 -06:00
IRateControl.h Update copyright header dates 2022-03-21 13:36:23 -07:00
LoadBalance.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
LoadBalance.actor.h Fix IDE build warnings and errors 2022-05-01 16:20:57 -07:00
LoadBalance.h Update copyright header dates 2022-03-21 13:36:23 -07:00
LoadPlugin.h Update copyright header dates 2022-03-21 13:36:23 -07:00
Locality.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
Locality.h Update copyright header dates 2022-03-21 13:36:23 -07:00
MultiInterface.h Update copyright header dates 2022-03-21 13:36:23 -07:00
Net2FileSystem.cpp Clean up includes in actor header files (#7331) 2022-06-13 13:26:51 -07:00
Net2FileSystem.h Update copyright header dates 2022-03-21 13:36:23 -07:00
PerfMetric.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
PerfMetric.h Merge remote-tracking branch 'origin/main' into features/private-request-streams 2022-04-07 13:29:27 -06:00
QueueModel.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
QueueModel.h Update copyright header dates 2022-03-21 13:36:23 -07:00
RESTClient.actor.cpp Interface to enable clients to send/receive REST requests/responses (#6866) 2022-04-27 12:17:52 -07:00
RESTClient.h Interface to enable clients to send/receive REST requests/responses (#6866) 2022-04-27 12:17:52 -07:00
RESTUtils.actor.cpp REST KmsConnector implementation (#6994) 2022-05-07 13:18:35 -07:00
RESTUtils.h Interface to enable clients to send/receive REST requests/responses (#6866) 2022-04-27 12:17:52 -07:00
RangeMap.h Update copyright header dates 2022-03-21 13:36:23 -07:00
Replication.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
Replication.h Update copyright header dates 2022-03-21 13:36:23 -07:00
ReplicationPolicy.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
ReplicationPolicy.h remove extra reference count inheritance 2022-05-23 13:00:31 -07:00
ReplicationTypes.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
ReplicationTypes.h Update copyright header dates 2022-03-21 13:36:23 -07:00
ReplicationUtils.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
ReplicationUtils.h Update copyright header dates 2022-03-21 13:36:23 -07:00
SimExternalConnection.actor.cpp Add DNS cache. 2022-04-04 15:08:17 -07:00
SimExternalConnection.h Add DNS cache. 2022-04-04 15:08:17 -07:00
Smoother.h Update copyright header dates 2022-03-21 13:36:23 -07:00
Stats.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
Stats.h Update copyright header dates 2022-03-21 13:36:23 -07:00
TSSComparison.h Update copyright header dates 2022-03-21 13:36:23 -07:00
TenantInfo.h Pass object as reference 2022-02-25 14:54:52 +01:00
TimedRequest.h Update copyright header dates 2022-03-21 13:36:23 -07:00
TokenSign.cpp Authz JWT support (#7279) 2022-06-02 13:22:50 +02:00
TokenSign.h Authz JWT support (#7279) 2022-06-02 13:22:50 +02:00
TraceFileIO.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
TraceFileIO.h Update copyright header dates 2022-03-21 13:36:23 -07:00
actorFuzz.py Merge release-6.3 into master 2020-05-22 09:25:32 -07:00
dsltest.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
fdbrpc.h Merge remote-tracking branch 'origin/main' into features/private-request-streams 2022-04-10 14:12:37 -06:00
genericactors.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
genericactors.actor.h Fix bug in resolveTCPEndpoint() when hostname resolving fails. (#7375) 2022-06-13 20:24:30 -07:00
linux_kaio.h Update copyright header dates 2022-03-21 13:36:23 -07:00
networksender.actor.h Update copyright header dates 2022-03-21 13:36:23 -07:00
sim2.actor.cpp Clean up includes in actor header files (#7331) 2022-06-13 13:26:51 -07:00
sim_validation.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
sim_validation.h Update copyright header dates 2022-03-21 13:36:23 -07:00
simulator.h Add simulation test for three_data_hall configuration (#7305) 2022-06-06 13:14:49 -07:00