actiontech/txle

[Improve][SagaStart/Compensable/AutoCompensable][timeout]it alway trigger compensate when timeout is set to -1 (a value less than 0)

Closed this issue · 2 comments

Describe The Bug

When timeout is set to -1 (a value less than 0), it is necessary to find the unreasonable parameter value when the program is running.

TXLE Version

https://github.com/actiontech/txle/commit/a7f442b8cedaf0d8e3acf559f8584aa661916347

To Reproduce

Steps to reproduce the behavior:

  1. timeout is set to -1
    image
  2. send http request trigger this global transaction

Expected Result

timeout set to -1 is unreasonable

Real Result

the global transaction is always failed
image

Fixed. If the timeout is lessEqual 0, it'll never time out.
See the commit log.

VERSION:

acf918e

Verification:

  1. timeout is set to -1
    image
  2. send http request trigger this global transaction
  3. query the TxEvent table, the expiryTime of SagaStartedEvent is set to the maximum value
    image
  4. the global transaction is successful