apache / apache/hugegraph

[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
feature
Dominant language
Java
Stars
3.2k
Forks
636
Avg merge
3d 11h
Merged PRs (30d)
14

Description

### Feature Description (功能描述)

![img_v3_026a_2464d106-082c-4ec3-bd62-bb132b5e1c0g](https://github.com/apache/incubator-hugegraph/assets/49650772/6b241f4e-ef71-4a80-ad58-4458be2c1f65)
When we fail to curl in the function `wait_for_startup` in the following code (I guess),
```bash
status=$(curl -I -s -k -w "%{http_code}" -o /dev/null "$server_url")
```
there are no error messages of logs
![image](https://github.com/apache/incubator-hugegraph/assets/49650772/88f218e0-1e92-4478-b65b-2aa692d04906)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.