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

[Console] Error in bulk mode does not cause exit status to be non-zero #2052

Open
gramian opened this issue Mar 11, 2025 · 0 comments
Open

Comments

@gramian
Copy link
Collaborator

gramian commented Mar 11, 2025

ArcadeDB Server v25.3.1 (build d86c5c504da14112a6e81cdb6efbc85567137aca/1741368384948/main)

Running on Linux 6.2.0-26-generic - OpenJDK 64-Bit Server VM 17.0.14

Running a commands in bulk mode in the console of which one causes an error still leads to a zero return value.

This example returns 0 instead of 1 signaling an error:

bin/console.sh -b "CREATE DATABASE test; SELECT FROM nottest; SELECT 3;"
echo $?

This means if for example console bulk commands are used in a Dockerfile and those contain an error the container image build still passes.

Hint: Console.java only contains System.exit(0); maybe the exist status needs to be an attribute of the Console class and set if an exception is caught?

@gramian gramian changed the title [Console] Error in bulk mode does not cause return value to be non-zero [Console] Error in bulk mode does not cause exit status to be non-zero Mar 12, 2025
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