[Bug] graph-node won't start if DNS does not resolve

Open
#5,246 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

No file or test is named in the report. Start by tracing graph-node startup through its DNS resolution path and determine where an empty DNS result prevents startup. Done means startup continues without resolved records and DNS is retried periodically so changing IP addresses can be discovered.

Written by the indexing model from the issue text.

Description

bug ops Stale
Bug report

We use consul (https://www.hashicorp.com/products/consul) to manage DNS for our RPC servers. Consul will add/remove DNS entries based on health status of RPCs. If all the RPCs are unhealthly the DNS query will return no results.

If the DNS returns no results, graph-node fails to start.

Graph-node should start even if DNS is not resolvable and attempt to resolve IP address from time-to-time just as it normally should do for any other service.

Note: IP addresses change over time. DNS should be re-resolved on a periodic basis anyway.

Relevant log output

No response

IPFS hash

No response

Subgraph name or link to explorer

No response

Some information to help us out
  • Tick this box if this bug is caused by a regression found in the latest release.
  • Tick this box if this bug is specific to the hosted service.
  • I have searched the issue tracker to make sure this issue is not a duplicate.
OS information

None

Dominant language
Rust
Stars
3.2k
Forks
1.1k
Avg merge
4d 1h
Merged PRs (30d)
1

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 graphprotocol/graph-node

All issues in graphprotocol/graph-node

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.