Fix a flaky test for gdd/dist-deadlock-upsert (#10302)
* Fix a flaky test for gdd/dist-deadlock-upsert
When to run GDD probe is undermined, but it is import for the test
gdd/dist-deadlock-upsert. If the GDD probe runs immediately after
the 2 inter-dead-locked transactions, one of the transactions will
be killed. The isolation2 framework consider the transaction being
blocked if the transaction doesn't finished in 0.5 second. So, if
the killed transaction is too early to be aborted, the test framework
sees no dead lock.
Analyzed-by: NGang Xiong <gxiong@pivotal.io>
* rm sleep
Showing
想要评论请 注册 或 登录