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

In which cases is a NeedRetryException thrown? #1544

Open
vic0824 opened this issue Apr 12, 2024 · 0 comments
Open

In which cases is a NeedRetryException thrown? #1544

vic0824 opened this issue Apr 12, 2024 · 0 comments

Comments

@vic0824
Copy link

vic0824 commented Apr 12, 2024

ArcadeDB Version:

v24.1.1 (build 48e937e/1707163239355/main)

OS and JDK Version:

Linux 2.6.32-754.35.1.el6.x86_64 - OpenJDK 64-Bit Server VM 11.0.20 (Corretto-11.0.20.8.1)

Expected behavior

The manual says that using the transaction method scope lambda is equivalent to the begin/commit/rollback idiom, where the rollback occurs in case an Exception is thrown. However, in other places the manual says that in case a NeedRetryException is thrown, the transaction is automatically repeated.

Actual behavior

In the examples of a manual begin/commit/rollback sequence, the type of exception caught is Exception, which is a parent of NeedRetryException, so it seems that a retry never actually occurs.
What is the actual behaviour of the transaction method?

Steps to reproduce

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant