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

SQLscript: "WAIT" command to avoid rollback error. #1699

Open
gramian opened this issue Aug 21, 2024 · 0 comments
Open

SQLscript: "WAIT" command to avoid rollback error. #1699

gramian opened this issue Aug 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@gramian
Copy link
Collaborator

gramian commented Aug 21, 2024

ArcadeDB Version:

24.6.1

Using a transaction (BEGIN ... COMMIT) and a backup (BACKUP DATABASE) right afterwards in SQLscript,
frequently a "pending transaction" error is logged. Thus, I propose a new SQLscript command WAIT, which pauses until all pending transactions are completed.

Expected behavior

SQLscript:

BEGIN;
something
COMMIT;
WAIT;
BACKUP DATABASE;

Current behavior

SQLscript:

BEGIN;
something
COMMIT;
BACKUP DATABASE;

Log:

SEVER [BackupDatabaseStatement] Found pending transaction. Rolling it back before the backup...
@gramian gramian added the enhancement New feature or request label Aug 21, 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