foundationdb/fdbrpc
Jingyu Zhou 3c7953ae51
Fix a bug where speedUpSimulation is not enabled (#12476) (#12481)
* Fix a bug speedUpSimulation is not enabled

If the connectionFailureDisableTime is slightly larger than connectionFailureDisableTime,
disableConnectionFailures returns a small value such that disableConnectionFailuresAfter()
is not retrying. As a result, clogging is still in place, and cause many test failures.

A typical symptom is that some transaction can't commit due to transaction_too_old errors.
If we look closely, we'll find that there are many ProxyReject errors with QDelay > 5s.
A failure I looked at has only one commit proxy and one resolver, and the latency
between them is quite high:

5.494145 Sim2Connection Machine=2.0.2.1:2 ID=0000000000000000 From=2.0.2.1:2 To=2.0.2.2:2 SendBufSize=1736851 Latency=0.0292578 StableConnection=0
5.494145 Sim2Connection Machine=2.0.2.1:2 ID=0000000000000000 From=2.0.2.2:2 To=2.0.2.1:2 SendBufSize=510278 Latency=0.0158367 StableConnection=0

So after a while, all transactions got either transaction_too_old errors or
ProxyReject'ed, because resolution took about 100ms on average.

To reproduce:
Commit: a3720567a2
Seed: -b on -f tests/fast/BackupCorrectnessWithEKPKeyFetchFailures.toml -s 2458961283

* Add a const DISABLE_CONNECTION_FAILURE_MIN_INTERVAL
2025-10-21 14:20:02 -07:00
..
TokenSign Update end year in copyright header 2024-08-02 09:40:11 -07:00
include/fdbrpc Fix a bug where speedUpSimulation is not enabled (#12476) (#12481) 2025-10-21 14:20:02 -07:00
libcoroutine Fix typos 2024-02-07 01:16:00 +02:00
libeio clang-format-19.1.5 repo 2025-04-08 21:56:00 +00:00
protos Add gRPC file transfer service (#11892) 2025-02-13 14:36:30 -08:00
tests Add gRPC file transfer service (#11892) 2025-02-13 14:36:30 -08:00
ActorFuzz.actor.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
ActorFuzzUnitTest.cpp More copyright end year updates (#11556) 2024-08-05 14:00:32 -07:00
AsyncFileCached.actor.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
AsyncFileEncrypted.actor.cpp Backup encryption fix on S3 (#12289) 2025-09-24 11:25:51 -07:00
AsyncFileNonDurable.actor.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
AsyncFileWriteChecker.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
Base64Decode.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
Base64Encode.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
CMakeLists.txt Add gRPC file transfer service (#11892) 2025-02-13 14:36:30 -08:00
CoroTests.cpp Upgrade fmt from 8.1.1 to 11.0.2 (#11601) 2024-09-10 14:42:43 -07:00
DDSketchTest.actor.cpp ddsketch: Fix undefined behaviour in DDSketch::getValue 2022-12-08 10:07:11 -08:00
FailureMonitor.actor.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
FileTransfer.cpp Add gRPC file transfer service (#11892) 2025-02-13 14:36:30 -08:00
FlowGrpc.cpp Implement TLS support for Flow/gRPC 2025-03-17 12:16:06 -07:00
FlowGrpcTests.actor.cpp Handle Exceptions in AsyncTaskExecutor 2025-03-06 17:31:20 -08:00
FlowGrpcTests.cpp Add more gRPC/TLS tests 2025-03-17 12:16:06 -07:00
FlowTests.actor.cpp clang-format-19.1.5 repo 2025-04-08 21:56:00 +00:00
FlowTransport.actor.cpp SimpleCounter implementation and application to Arena, FastAlloc, and Net2 cherrypick to 7.4 (#12372) 2025-09-15 17:07:07 -07:00
HTTP.actor.cpp Add multiparting to s3client. (#11920) 2025-02-13 09:06:17 -08:00
HTTPServer.actor.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
HealthMonitor.actor.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
IPAllowList.cpp Upgrade fmt from 8.1.1 to 11.0.2 (#11601) 2024-09-10 14:42:43 -07:00
JsonWebKeySet.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
LinkTest.cpp Add test executables to catch missing symbols 2022-07-06 14:49:33 -07:00
LoadBalance.actor.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
Locality.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
Net2FileSystem.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
QueueModel.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
Replication.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
ReplicationPolicy.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
ReplicationTypes.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
ReplicationUtils.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
SimExternalConnection.actor.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
Stats.actor.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
TokenCache.actor.cpp Upgrade fmt from 8.1.1 to 11.0.2 (#11601) 2024-09-10 14:42:43 -07:00
TokenSign.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
TraceFileIO.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
actorFuzz.py More copyright end year updates (#11556) 2024-08-05 14:00:32 -07:00
dsltest.actor.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
sim2.actor.cpp Fix a bug where speedUpSimulation is not enabled (#12476) (#12481) 2025-10-21 14:20:02 -07:00
sim_validation.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00
swift_sim2_hooks.cpp Update end year in copyright header 2024-08-02 09:40:11 -07:00