we need to check the server list at a higher priority, because if we do not notice a storage server interface change for a long period of time, we will mark it as failed
This commit is contained in:
parent
721a891d1f
commit
3915d6825c
|
@ -1386,7 +1386,7 @@ ACTOR Future<vector<std::pair<StorageServerInterface, ProcessClass>>> getServerL
|
|||
}
|
||||
|
||||
ACTOR Future<Void> waitServerListChange( DDTeamCollection *self, Database cx, FutureStream<Void> serverRemoved ) {
|
||||
state Future<Void> checkSignal = delay(SERVER_KNOBS->SERVER_LIST_DELAY, TaskDataDistribution);
|
||||
state Future<Void> checkSignal = delay(SERVER_KNOBS->SERVER_LIST_DELAY);
|
||||
state Future<vector<std::pair<StorageServerInterface, ProcessClass>>> serverListAndProcessClasses = Never();
|
||||
state bool isFetchingResults = false;
|
||||
state Transaction tr(cx);
|
||||
|
@ -1421,7 +1421,7 @@ ACTOR Future<Void> waitServerListChange( DDTeamCollection *self, Database cx, Fu
|
|||
}
|
||||
|
||||
tr = Transaction(cx);
|
||||
checkSignal = delay(SERVER_KNOBS->SERVER_LIST_DELAY, TaskDataDistribution);
|
||||
checkSignal = delay(SERVER_KNOBS->SERVER_LIST_DELAY);
|
||||
}
|
||||
when( Void _ = waitNext( serverRemoved ) ) {
|
||||
if( isFetchingResults ) {
|
||||
|
|
Loading…
Reference in New Issue