Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pgbelt should output which database and environment a stack trace is thrown for! #88

Open
vjeeva opened this issue Sep 26, 2022 · 1 comment
Assignees

Comments

@vjeeva
Copy link
Contributor

vjeeva commented Sep 26, 2022

Is your feature request related to a problem? Please describe.
In #87, it took the team a while to realize which database was throwing the timeout errors. The stack trace said there was a statement timeout, but not for which database and environment. The logger printed a bunch of stuff and each thread prints to it asynchronously in different orders so the last line before the stack trace wouldn't necessarily be the database that had the error.

Describe the solution you'd like
When a stack trace is thrown, make it clear in the terminal output that it was thrown for X database in Y environment.

Describe alternatives you've considered
No solution would make diagnoses like the above take longer than preferred.

@vjeeva vjeeva self-assigned this Sep 26, 2022
@vjeeva
Copy link
Contributor Author

vjeeva commented Dec 6, 2022

https://github.com/Autodesk/pgbelt/blob/main/pgbelt/cmd/sync.py#L45-L52 Like there, catch and show which thread or pool had the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant