Commit e89f69a
committed
[#29197] YSQL: fix TestConflictAbortViaOldHeartbeatBeforeNewHeartbeat
Summary:
Read inside serializable transaction in the `WarmupTablespaceCache` helper function introduces extra delay in `asan`/`tsan` in several unit test (these tests add additional delay in distributed txn for testing purposes via GFlags). As a result units test are executed for a long time and also may fail due to timing issue.
The fix is to make a read from default transaction (read committed or repeatable read) which doesn't use distributed transaction for read operations.
Jira: DB-18960
Test Plan: Jenkins
Reviewers: esheng, bkolagani, #db-approvers
Reviewed By: bkolagani, #db-approvers
Subscribers: svc_phabricator, yql
Tags: #jenkins-ready
Differential Revision: https://phorge.dev.yugabyte.com/D480491 parent dda564a commit e89f69a
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
396 | 395 | | |
397 | 396 | | |
398 | 397 | | |
0 commit comments