You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ReliableReportingService startup failure suppresses its cause (raise failure from None) #1561
ReliableReportingLifecycle._open (adcp 9.0.0b4, adcp/reporting/service_lifecycle.py) catches any startup error and re-raises the lifecycle's failure with the cause suppressed:
Tracebacks, Sentry and logging integrations then report only ReliableReportingServiceError: reporting service failed (startup). The error that stopped startup survives only as the suppressed __context__.
We hit this in production. adcp 9 refused a reporting ledger without caller ownership (ReportingOwnershipMigrationError from require_owned_schema_or_empty in store.create_schema()), but every Sentry event showed only the wrapper, so the failure couldn't be diagnosed from telemetry.
Expected
The startup failure names its cause. Chaining it is enough:
raisefailurefromerror
ReportingOwnershipMigrationError is an operator-actionable precondition. Its message tells the operator to call replace_empty_legacy_reporting or migrate_legacy_reporting, so it could also be re-raised unwrapped, the way configuration errors are.
Workaround
Adopters read error.__context__ when start() raises.
Activity