Skip to content

Commit

Permalink
Merge 9d8138c into backport/b-ott-expiration-determinism/endlessly-cl…
Browse files Browse the repository at this point in the history
…osing-cardinal
  • Loading branch information
hc-github-team-nomad-core authored Jul 18, 2022
2 parents 4a136c7 + 9d8138c commit 81dcf20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nomad/acl_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,8 @@ func (a *ACL) ExpireOneTimeTokens(args *structs.OneTimeTokenExpireRequest, reply
}
}

args.Timestamp = time.Now() // use the leader's timestamp

// Expire token via raft; because this is the only write in the RPC the
// caller can safely retry with the same token if the raft write fails
_, index, err := a.srv.raftApply(structs.OneTimeTokenExpireRequestType, args)
Expand Down

0 comments on commit 81dcf20

Please sign in to comment.