wiki.techinc.nl/tests/phpunit/includes/db
Aaron Schulz 52af356cad Avoid unnecessary WaitConditionLoop delays in ChronologyProtector
Since it takes time for the agent to get the response and set the
cookie and, as well, the time into a request that a LoadBalancer is
initialized varies by many seconds (cookies loaded from the start),
give the cookie a much lower TTL than the DB positions in the stash.

This avoids having to wait for a position with a given cpPosIndex
value, when the position already expired from the store, which is
a waste of time.

Also include the timestamp in "cpPosIndex" cookies to implement
logical expiration in case clients do not expire them correctly.

Bug: T194403
Bug: T190082
Change-Id: I97d8f108dec59c5ccead66432a097cda8ef4a178
2018-05-18 13:43:05 -07:00
..
DatabaseOracleTest.php tests: Enable PHPUnit 4/6 compat layer in some tests that need it 2018-04-07 19:31:24 -07:00
DatabasePostgresTest.php rdbms: Remove support for PostgreSQL < 9.2, and improve INSERT IGNORE for 9.5 2018-04-05 20:52:46 +00:00
DatabaseSqliteTest.php rdbms: make LoadBalancer::getConnection() ignore CONN_TRX_AUTO when unusable 2018-03-02 18:40:39 +00:00
DatabaseTestHelper.php rdbms: Issue a deprecation warning if errors are ignored 2018-04-10 02:06:44 +00:00
LBFactoryTest.php Avoid unnecessary WaitConditionLoop delays in ChronologyProtector 2018-05-18 13:43:05 -07:00
LoadBalancerTest.php rdbms: rename onTransactionIdle() to onTransactionCommitOrIdle() 2018-05-09 21:07:06 +00:00