Skip to content

fix(core): suppress error output in print-hello.sh during startup failure#6738

Merged
bluestreak01 merged 1 commit intomasterfrom
suppress-hello-errors
Feb 2, 2026
Merged

fix(core): suppress error output in print-hello.sh during startup failure#6738
bluestreak01 merged 1 commit intomasterfrom
suppress-hello-errors

Conversation

@ideoma
Copy link
Copy Markdown
Collaborator

@ideoma ideoma commented Feb 2, 2026

Summary

  • Suppress confusing cat/rm error messages when QuestDB fails to start due to configuration errors
  • Add quotes around $HELLO_FILE for robustness with paths containing spaces

Problem

When QuestDB fails to start (e.g., invalid cron expression in enterprise), there's a race condition:

  1. Server starts, creates hello.txt with deleteOnExit()
  2. Configuration validation fails, JVM begins shutdown
  3. deleteOnExit() removes hello.txt
  4. print-hello.sh tries to read/remove the file → error messages
JAVA: /opt/apps/questdb/bin/java
cat: /opt/apps/.questdb-eq1/hello.txt: No such file or directory
rm: cannot remove '/opt/apps/.questdb/hello.txt': No such file or directory

Solution

Redirect stderr to /dev/null for cat and rm commands. The actual startup failure is logged in stdout-*.txt.

…lure

When QuestDB fails to start due to configuration errors (e.g., invalid
cron expression), there's a race condition where hello.txt is created
briefly then deleted by JVM's deleteOnExit hook. This caused confusing
error messages from cat/rm trying to access the removed file.

Redirect stderr to /dev/null for cat and rm commands to suppress these
cosmetic errors. The actual startup failure is logged elsewhere.

Also quote $HELLO_FILE for robustness with paths containing spaces.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 2, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch suppress-hello-errors

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@bluestreak01 bluestreak01 merged commit e3581d2 into master Feb 2, 2026
38 of 44 checks passed
@bluestreak01 bluestreak01 deleted the suppress-hello-errors branch February 2, 2026 15:46
@questdb-butler
Copy link
Copy Markdown

⚠️ Enterprise CI Failed

The enterprise test suite failed for this PR.

Build: View Details
Tested Commit: 8b4b32c6c0edbeac5f6432a9b6f271c81ac9ce30

Please investigate the failure before merging.

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

Successfully merging this pull request may close these issues.

4 participants