Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bdb/rep.c
Original file line number Diff line number Diff line change
Expand Up @@ -2571,6 +2571,9 @@ static void got_new_seqnum_from_node(bdb_state_type *bdb_state,
* delay commits (the last downgrade) */
if ((!nodeup && is_drtest) ||
(downgrade_penalty && (gettimeofday_ms() - h->last_downgrade_time) <= downgrade_penalty)) {
logmsg(LOGMSG_DEBUG, "%s line %d -> incoh-wait, nodeup=%d is_drtest=%d downgrade_penalty=%d last_downgrade_time=%" PRIu64 "\n",
__func__, __LINE__, nodeup, is_drtest,
downgrade_penalty, h->last_downgrade_time);
set_coherent_state(bdb_state, hostinterned, STATE_INCOHERENT_WAIT, __func__, __LINE__);
} else {
/* dont send here under lock */
Expand Down
5 changes: 5 additions & 0 deletions tests/incoherent_startup.test/lrl.options
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ rep_processors 0
rep_workers 0
set_seqnum_trace 1
setattr WAIT_FOR_SEQNUM_TRACE 1
catchup_window 0

# This causes a failure because of the 'downgrade_penalty'.
# I've added instrumentation so that we can understand this failure
# incoherent_clnt_wait 0
Loading