-
-
Notifications
You must be signed in to change notification settings - Fork 90
Closed
Milestone
Description
ArcadeDB Version: 21.10.2-SNAPSHOT (build 88f7d00/1634331428839/main)
OS: docker
Expected behavior
Given the following:
- POST to
begin/_test - POST to
query/_test(with the arcadedb-session-id) - POST to
rollback/_test(with the arcadedb-session-id)
The rollback should succeed.
Actual behavior
The rollback fails with Transaction not begun.
Steps to reproduce
It seems that any call to query with a session-id will commit that transaction immediately. So if you do an insert or something, then call query, the rollback will fail and the inserted record will show in the database.
This seems only to impact query. The command endpoint, if used in place of query, works as expected.
You can see this in action via this gist that will run in the Visual Studio Code plugin Rest Client. (should be easy enough to follow even if you don't run it, though!)
Reactions are currently unavailable