[risk][Compensable][retries]When the set retries value is less than -1, there is a risk of overflow
Closed this issue · 2 comments
asiroliu commented
Describe The Bug
When the set retries value is less than -1, the retries value is always reduced , there is a risk of overflow
TXLE Version
https://github.com/actiontech/txle/commit/6bd946510f1515943e46c135d37eb1f183f30673
To Reproduce
Steps to reproduce the behavior:
- The first sub-transaction annotation Compensable parameter retries = -2147483648
- Trigger the first sub-transaction exception, causing the retry event
Real Result
Suggestion
Less than 0, unlimited retry;
Equal to 0, do not retry;
Greater than 0, retry n times;
jiuang commented
Fixed.
Less than 0, unlimited retry;
Equal to 0, do not retry;
Greater than 0, retry n times;
See the commit log.