Make fault_tolerance_without_losing data consistent with 6.2 in HA.

Don't consider satellites for now. This is a HACK which needs to be fixed
soon, but for now need this to keep the monitoring sane.
This commit is contained in:
Vishesh Yadav 2020-12-22 16:53:34 -08:00
parent 6957e64886
commit 31cc888562

View File

@ -1945,8 +1945,15 @@ static JsonBuilderObject tlogFetcher(int* logFaultTolerance, const std::vector<T
if(currentFaultTolerance >= 0) {
localSetsWithNonNegativeFaultTolerance++;
}
if (tLogs[i].locality == tagLocalitySatellite) {
// FIXME: This hack to bump satellite fault tolerance, is to make it consistent
// with 6.2.
minFaultTolerance = std::min(minFaultTolerance, currentFaultTolerance + 1);
} else {
minFaultTolerance = std::min(minFaultTolerance, currentFaultTolerance);
}
}
if (tLogs[i].isLocal && tLogs[i].locality == tagLocalitySatellite) {
sat_log_replication_factor = tLogs[i].tLogReplicationFactor;