rdbms: set cpPosIndex to null in ChronologyProtector::shutdown on failure
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 1 May 2018 18:21:13 +0000 (11:21 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 5 May 2018 22:51:30 +0000 (22:51 +0000)
commit19d6e3343bf0903c0c1a8593ba020495c4795293
tree6d5ff3436801dfd0d0020c459cf96f6b19f382b9
parentebc32b659a3528991f0d8943699c62d15448dd56
rdbms: set cpPosIndex to null in ChronologyProtector::shutdown on failure

This already happens on lock acquisition failure but not on write failure.
If the write failed, then there is not point timing out on the next request
after waiting "waitForPosStoreTimeout" seconds.

Also raise the initPositions() logging for missing positions to WARNING
and improve the wait loop log entries in that method.

Change-Id: Id738eb6f85c91dd05fadd2e6c3f19ae3204e2575
includes/libs/rdbms/ChronologyProtector.php