Added logs for worker_removed() errors in SS.
This commit is contained in:
parent
cd72ae21fd
commit
9f974ef21f
|
@ -3548,6 +3548,7 @@ private:
|
|||
|
||||
data->recoveryVersionSkips.emplace_back(rollbackVersion, currentVersion - rollbackVersion);
|
||||
} else if (m.type == MutationRef::SetValue && m.param1 == killStoragePrivateKey) {
|
||||
TraceEvent("StorageServerWorkerRemoved", data->thisServerID).detail("Reason", "KillStorage");
|
||||
throw worker_removed();
|
||||
} else if ((m.type == MutationRef::SetValue || m.type == MutationRef::ClearRange) &&
|
||||
m.param1.substr(1).startsWith(serverTagPrefix)) {
|
||||
|
@ -3557,6 +3558,10 @@ private:
|
|||
if ((m.type == MutationRef::SetValue && !data->isTss() && !matchesThisServer) ||
|
||||
(m.type == MutationRef::ClearRange &&
|
||||
((!data->isTSSInQuarantine() && matchesThisServer) || (data->isTss() && matchesTssPair)))) {
|
||||
TraceEvent("StorageServerWorkerRemoved", data->thisServerID)
|
||||
.detail("Reason", "ServerTag")
|
||||
.detail("TagMatches", matchesThisServer)
|
||||
.detail("IsTSS", data->isTss());
|
||||
throw worker_removed();
|
||||
}
|
||||
if (!data->isTss() && m.type == MutationRef::ClearRange && data->ssPairID.present() &&
|
||||
|
@ -3696,6 +3701,7 @@ ACTOR Future<Void> update(StorageServer* data, bool* pReceivedUpdate) {
|
|||
}
|
||||
data->tlogCursorReadsLatencyHistogram->sampleSeconds(now() - beforeTLogCursorReads);
|
||||
if (cursor->popped() > 0) {
|
||||
TraceEvent("StorageServerWorkerRemoved", data->thisServerID).detail("Reason", "PeekPoppedTLogData");
|
||||
throw worker_removed();
|
||||
}
|
||||
|
||||
|
@ -5357,6 +5363,7 @@ ACTOR Future<Void> replaceTSSInterface(StorageServer* self, StorageServerInterfa
|
|||
|
||||
if (!pairTagValue.present()) {
|
||||
TEST(true); // Race where tss was down, pair was removed, tss starts back up
|
||||
TraceEvent("StorageServerWorkerRemoved", self->thisServerID).detail("Reason", "TssPairMissing");
|
||||
throw worker_removed();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue