Skip to content

Commit

Permalink
Merge pull request #1599 from Expensify/tyler-demote-some-warnings
Browse files Browse the repository at this point in the history
Demote warnings
  • Loading branch information
tylerkaraszewski authored Oct 30, 2023
2 parents d89b94d + 1addc05 commit 2d9259b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sqlitecluster/SQLiteNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1276,17 +1276,17 @@ void SQLiteNode::_onMESSAGE(SQLitePeer* peer, const SData& message) {

if (quorumUpToDate && _commitsBlocked) {
_commitsBlocked = false;
SWARN("[clustersync] Cluster is no longer behind by over " << MAX_PEER_FALL_BEHIND << " commits. Unblocking new commits.");
SINFO("[clustersync] Cluster is no longer behind by over " << MAX_PEER_FALL_BEHIND << " commits. Unblocking new commits.");
_db.exclusiveUnlockDB();
} else if (!quorumUpToDate && !_commitsBlocked && !_db.insideTransaction()) {
_commitsBlocked = true;
uint64_t myCommitCount = getCommitCount();
SWARN("[clustersync] Cluster is behind by over " << MAX_PEER_FALL_BEHIND << " commits. New commits blocked until the cluster catches up.");
uint64_t start = STimeNow();
_db.exclusiveLockDB();
SWARN("[clustersync] Took " << (STimeNow() - start) << "us to block commits. Dumping cluster commit state. I have commit: " << myCommitCount);
SINFO("[clustersync] Took " << (STimeNow() - start) << "us to block commits. Dumping cluster commit state. I have commit: " << myCommitCount);
for (const auto& p : _peerList) {
SWARN("[clustersync] Peer " << p->name << " has commit " << p->commitCount << ", behind by: " << (myCommitCount - p->commitCount));
SINFO("[clustersync] Peer " << p->name << " has commit " << p->commitCount << ", behind by: " << (myCommitCount - p->commitCount));
}
}
}
Expand Down

0 comments on commit 2d9259b

Please sign in to comment.