Skip to content

Remove extra sleep in exclusive lease helper

Alex Kalderimis requested to merge ajk-fix-extra-sleep-exclusive-lease into master

What does this MR do?

This MR fixes #216050 (closed), by re-writing the loop logic so that the loop is basically:

until held?
  raise if too_many_attempts?
  sleep unless first_attempt?

  try_obtain
end

The subtle complexities of the loop logic and the attempt to code this as a concise count-down led to the intial problems in managing state.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

/copy_metadata #216050 (closed)

Edited by Alex Kalderimis

Merge request reports