Skip to content

Commit

Permalink
Reset partition state to be TrySync when session break (OpenAtomFound…
Browse files Browse the repository at this point in the history
  • Loading branch information
whoiami authored and Axlgrep committed May 15, 2019
1 parent 16531a0 commit d474ba8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/pika_rm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ Status SyncSlavePartition::CheckSyncTimeout(uint64_t now, bool* del) {
m_info_.PartitionId() << " Not Found";
}
partition->SetReplState(ReplState::kTryConnect);
g_pika_server->MarkTryConnectDone();
*del = true;
}
return Status::OK();
Expand Down Expand Up @@ -1008,7 +1009,8 @@ Status PikaReplicaManager::CheckSyncTimeout(uint64_t now) {
}
for (auto& partition_info : to_del) {
sync_slave_partitions_.erase(partition_info);
LOG(INFO) << "SyncTimeout Delete Master Node Success, partition: " << partition_info.ToString();
LOG(INFO) << "SyncTimeout Delete Master Node Success, partition: " << partition_info.ToString()
<< " Reset state TryConnect";
}
return Status::OK();
}
Expand Down
2 changes: 1 addition & 1 deletion third/blackwidow
Submodule blackwidow updated 0 files

0 comments on commit d474ba8

Please sign in to comment.