Terry Wilson c3bacb3ba3 Fix TRY_AGAIN handling
I believe removing wait_for_change back in the day was an error.
We can't do the exponential backoff ourselves because that will
also delay reconnecting to the the db, because idl.run() needs to
be called. Also, do_commit() doesn't ensure that idl.run() is
called if status is TRY_AGAIN. wait_for_change() will ensure that
we call idl.run() to reconnect quickly and don't try the txn again
until we have reconnected and the seqno has changed.

Revert "Don't spam retries 100s of times a second"
This reverts commit 6596164f51217cc7fabf302ce14ccc9d9beaff1f.

Revert "Ensure idl.run() called on TRY_AGAIN"
This reverts commit 1810faecc9ad2345f3e2f9185ac64194c5a0d711.

Revert "Don't wait on TRY_AGAIN when calling commit_block()"
This reverts commit 158ae06bce0f56e93677f94c59f81e5e76ee1ccc.

Closes-Bug: #1988457
Change-Id: I237136262862d5117d08eb3b513a0b8658a79f05
2022-09-02 15:37:13 +00:00
..
2022-09-02 15:37:13 +00:00
2017-02-24 15:02:19 -05:00
2020-04-02 13:06:11 -04:00
2021-01-04 09:47:29 -05:00
2021-01-04 09:47:29 -05:00