mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
fix(cluster): fix backoff on unknown migration (#3965)
This commit is contained in:
parent
c80d21fcba
commit
70614b8d40
1 changed files with 5 additions and 3 deletions
|
@ -207,9 +207,11 @@ void OutgoingMigration::SyncFb() {
|
|||
}
|
||||
|
||||
if (!CheckRespIsSimpleReply("OK")) {
|
||||
VLOG(2) << "Received non-OK response, retrying";
|
||||
if (!CheckRespIsSimpleReply(kUnknownMigration)) {
|
||||
VLOG(2) << "Target node does not recognize migration";
|
||||
if (CheckRespIsSimpleReply(kUnknownMigration)) {
|
||||
VLOG(2) << "Target node does not recognize migration; retrying";
|
||||
ThisFiber::SleepFor(1000ms);
|
||||
} else {
|
||||
VLOG(1) << "Unable to initialize migration";
|
||||
cntx_.ReportError(GenericError(std::string(ToSV(LastResponseArgs().front().GetBuf()))));
|
||||
}
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue