chef / chef/chef-server

preflight checks can hang if backend is unreachable

Open
#726 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Aspect: UX Component: omnibus packaging Status: To be prioritized Triage: Confirmed Type: Chore
Dominant language
Erlang
Stars
303
Forks
211
Avg merge
1d 8h
Merged PRs (30d)
5

Description

It appears that we don't set a connect_timeout in our call to PGConn.open. This can result in a number of the preflight validators hanging for a considerable amount of time (in my case it hung forever) with no user feedback.

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.

Research direction

Start by locating the preflight validators and their calls to PGConn.open. Check how connection attempts behave when the backend is unreachable and identify the existing validation tests or entry points. Done means preflight checks return within a bounded time with user feedback instead of hanging indefinitely.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang, postgresql
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.