Skip to content

Commit

Permalink
Add id to Translog.Delete#toString()
Browse files Browse the repository at this point in the history
The assertion failure message in elastic#72735 did not indicate why it failed
because `Translog.Delete#toString()` does not expose all the fields of
the problematic operation. This commit adds the missing `id` and `type`
fields.

Backport of elastic#72752 to 7.x
  • Loading branch information
DaveCTurner committed May 5, 2021
1 parent 54cb141 commit 7e91da4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,9 @@ public int hashCode() {
@Override
public String toString() {
return "Delete{" +
"uid=" + uid +
"id=" + id +
", type=" + type +
", uid=" + uid +
", seqNo=" + seqNo +
", primaryTerm=" + primaryTerm +
", version=" + version +
Expand Down

0 comments on commit 7e91da4

Please sign in to comment.