Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop when handle transaction error #4

Open
asheswook opened this issue Jun 11, 2024 · 0 comments
Open

Infinite loop when handle transaction error #4

asheswook opened this issue Jun 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@asheswook
Copy link
Member

asheswook commented Jun 11, 2024

This has possibility of infinite loop when handle transaction error handleTxnError().

A transaction must be canceled if some error occurs, for exactly-once. In my opinion, it would be better to delay processing (time.Sleep) or log if cross the attempt threshold in a loop. (actually my suggestion is another business feature)

ref: #3 (comment)

@asheswook asheswook added the enhancement New feature or request label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant