Commit b8a2c4e
committed
sql: fix lease duration in TestReacquireLeaseOnRestart
The test jumps the clock forward in order to expire KV leases. However,
the DefaultDescriptorLeaseDuration constant that it chooses seems to be
by mistake taken as the KV lease duration. Use the RangeLeaseDuration
from the server config instead.
This also fixes early SQL pod termination when multi-tenancy is enabled.
Currently, the lifetime of the SQL pod is the same as that of the
session, which has a TTL of 40s (server.sqlliveness.ttl setting). The
10 minute clock jump in this test was causing early SQL pod termination
and flakes.
Epic: none
Release note: none1 parent c484d09 commit b8a2c4e
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
1268 | 1271 | | |
1269 | 1272 | | |
1270 | 1273 | | |
| |||
1280 | 1283 | | |
1281 | 1284 | | |
1282 | 1285 | | |
1283 | | - | |
| 1286 | + | |
1284 | 1287 | | |
1285 | 1288 | | |
1286 | 1289 | | |
| |||
1310 | 1313 | | |
1311 | 1314 | | |
1312 | 1315 | | |
1313 | | - | |
1314 | 1316 | | |
1315 | 1317 | | |
1316 | 1318 | | |
| |||
0 commit comments