Skip to content

Commit

Permalink
add logs for deferred events
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremyyang920 committed Dec 3, 2024
1 parent 12fa00d commit 8b2decf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/sequencer/core/round.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (r *round) scheduleCommit(
// retried, mark them as poisoned.
if r.targetPool.IsDeferrable(err) {
finalReport = false
log.WithError(err).Error("deferred event")
return lockset.RetryAtHead(err).Or(func() {
r.poisoned.MarkPoisoned(r.batch)
close(progressReport)
Expand Down
1 change: 1 addition & 0 deletions internal/util/stdpool/ora.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func oraErrorDeferrable(err error) bool {
if !ok {
return false
}
log.WithField("code", code).Error("oracle error code")
switch code {
case "1": // ORA-0001 unique constraint violated
// The MERGE that we execute uses read-committed reads, so
Expand Down

0 comments on commit 8b2decf

Please sign in to comment.