Skip to content

Commit

Permalink
remove idl changes (#3444)
Browse files Browse the repository at this point in the history
  • Loading branch information
yux0 authored Aug 11, 2020
1 parent cc2f567 commit 68a0fe2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions service/history/replication/task_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,6 @@ func (p *taskProcessorImpl) cleanupAckedReplicationTasks() error {
metrics.ReplicationTasksLag,
time.Duration(p.shard.GetTransferMaxReadLevel()-minAckLevel),
)
// update replication queue ack level.
// this ack level currently use by Kafka replication
if err := p.shard.UpdateReplicatorAckLevel(minAckLevel); err != nil {
return err
}
return p.shard.GetExecutionManager().RangeCompleteReplicationTask(
&persistence.RangeCompleteReplicationTaskRequest{
InclusiveEndTaskID: minAckLevel,
Expand Down
6 changes: 6 additions & 0 deletions service/history/replicatorQueueProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,12 @@ func (p *replicatorQueueProcessorImpl) getTasks(
p.logger.Error("error updating replication level for shard", tag.Error(err), tag.OperationFailed)
}

if err := p.shard.UpdateReplicatorAckLevel(
lastReadTaskID,
); err != nil {
p.logger.Error("error updating kafka replication level", tag.Error(err), tag.OperationFailed)
}

return &replicator.ReplicationMessages{
ReplicationTasks: replicationTasks,
HasMore: common.BoolPtr(hasMore),
Expand Down

0 comments on commit 68a0fe2

Please sign in to comment.