[Improvement] add error messages when starting the hugegraph-server fails in the function wait_for_startup of util.sh

Open
#2,400 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
shell
Domain
devops

Research direction

Read util.sh and locate wait_for_startup, especially the curl command that checks server_url. Reproduce a failed startup to observe the current silent behavior, then make the failure emit an error message instead of waiting until timeout. Verify the startup script still reports success when the server becomes available.

Written by the indexing model from the issue text.

Description

feature
Feature Description (功能描述)

img_v3_026a_2464d106-082c-4ec3-bd62-bb132b5e1c0g
When we fail to curl in the function wait_for_startup in the following code (I guess),

status=$(curl -I -s -k -w "%{http_code}" -o /dev/null "$server_url")

there are no error messages of logs
image

So, we should ensure that we can get the error message instead of waiting for timeout

Dominant language
Java
Stars
3.2k
Forks
637
Avg merge
3d 18h
Merged PRs (30d)
23

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/hugegraph

All issues in apache/hugegraph

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.