Skip to content

Commit 2fadbd2

Browse files
committed
Alert when RocksDB does not respect upper bound
1 parent 35b94a1 commit 2fadbd2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cpp/cdc/CDCDB.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,6 +1749,8 @@ struct CDCDBImpl {
17491749
LOG_DEBUG(_env, "selected %s as next in line after finishing %s", nextK().txnId(), txnId);
17501750
mightBeReady.emplace_back(nextK().txnId());
17511751
ROCKS_DB_CHECKED(dbTxn.Put(_dirsToTxnsCf, sentinelK.toSlice(), sentinelV.toSlice()));
1752+
} else {
1753+
RAISE_ALERT_APP_TYPE(_env, XmonAppType::DAYTIME, "Unexpectedly stepped from %s to %s, is RocksDB not respecting our upper bound?", dirId, nextK().dirId());
17521754
}
17531755
} else {
17541756
ROCKS_DB_CHECKED(it->status());

0 commit comments

Comments
 (0)