Page MenuHomePhabricator

When database connection exceptions occur, raise them to the setup layer
ClosedPublic

Authored by epriestley on May 17 2018, 1:03 PM.
Tags
None
Referenced Files
F18796204: D19454.diff
Fri, Oct 17, 3:07 AM
F18783015: D19454.diff
Mon, Oct 13, 3:19 AM
F18770940: D19454.id.diff
Wed, Oct 8, 4:24 PM
F18766676: D19454.id46535.diff
Tue, Oct 7, 5:52 PM
F18509646: D19454.id.diff
Sep 5 2025, 3:31 AM
F18502911: D19454.diff
Sep 4 2025, 10:43 PM
F18200081: D19454.id.diff
Aug 18 2025, 4:11 AM
F18196356: D19454.diff
Aug 17 2025, 5:52 PM
Subscribers
None

Details

Summary

Ref T13141. Currently, during first-time setup we don't surface all the details about connection exceptions that we could: the underlying exception is discarded inside cluster connection management.

This isn't a huge issue since the reason for connection problems is usually fairly obvious, but in at least one case (see T13141) we hit a less-than-obvious exception.

Instead, store the original exception and propagate the message up the stack so users have more information about the problem.

Test Plan
  • Configured an intentionally bad MySQL username.
  • Restarted Apache and loaded Phabricator.
  • Got a more helpful exception with a specific authentication error message.

Screen Shot 2018-05-17 at 5.56.31 AM.png (968×1 px, 138 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable