Skip to content

Commit

Permalink
Merge remote-tracking branch 'couchbase/unstable' into HEAD
Browse files Browse the repository at this point in the history
Change-Id: Ia78b31e2cbee49e59361a9abfa3ecd98bd864a59
  • Loading branch information
abhijpes committed Feb 17, 2022
2 parents 76101bd + 747cf42 commit fac3ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions consumer/checkpoint.go
Expand Up @@ -165,9 +165,7 @@ func (c *Consumer) isVbIdle(vbno uint16, checkpointTime *time.Time) bool {
currentTime := time.Now()
if checkpointTime.IsZero() == false &&
currentTime.Sub(*checkpointTime) < c.idleCheckpointInterval &&
c.backupVbStats.getVbStat(vbno, "last_processed_seq_no").(uint64) == c.vbProcessingStats.getVbStat(vbno, "last_processed_seq_no").(uint64) &&
c.backupVbStats.getVbStat(vbno, "last_doc_timer_feedback_seqno").(uint64) == c.vbProcessingStats.getVbStat(vbno, "last_doc_timer_feedback_seqno").(uint64) &&
c.backupVbStats.getVbStat(vbno, "sent_to_worker_counter").(uint64) == c.vbProcessingStats.getVbStat(vbno, "sent_to_worker_counter").(uint64) {
c.backupVbStats.getVbStat(vbno, "last_processed_seq_no").(uint64) == c.vbProcessingStats.getVbStat(vbno, "last_processed_seq_no").(uint64) {
return true
}
*checkpointTime = currentTime
Expand Down
2 changes: 1 addition & 1 deletion producer/depcfg_parser.go
Expand Up @@ -205,7 +205,7 @@ func (p *Producer) parseDepcfg() error {
if val, ok := settings["idle_checkpoint_interval"]; ok {
p.handlerConfig.IdleCheckpointInterval = int(val.(float64))
} else {
p.handlerConfig.IdleCheckpointInterval = 30000
p.handlerConfig.IdleCheckpointInterval = 1800000
}

if val, ok := settings["log_level"]; ok {
Expand Down

0 comments on commit fac3ce2

Please sign in to comment.