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

Show parent exceptions when an exception occurs in a child process and debugging is enabled #31

Closed
akenion opened this issue Aug 29, 2023 · 2 comments · Fixed by #35 or #49
Closed
Assignees
Labels
dev-complete Development work to resolve this issue is complete enhancement New feature or request qa-passed QA has tested and confirmed the fix for this issue subcommand:scan Related to the scan subcommand
Milestone

Comments

@akenion
Copy link
Contributor

akenion commented Aug 29, 2023

Currently, only the last exception is displayed. The parent exceptions are often necessary for debugging issues and including them in the output would be helpful.

@akenion akenion added enhancement New feature or request triaged subcommand:scan Related to the scan subcommand labels Aug 29, 2023
@akenion akenion added this to the exploring-elk milestone Aug 29, 2023
@akenion akenion self-assigned this Aug 29, 2023
@akenion akenion removed the triaged label Aug 30, 2023
@akenion
Copy link
Contributor Author

akenion commented Aug 30, 2023

After further analysis, this only impacts exceptions thrown in workers that are passed back to the main process via a queue. This is because serializing an exception using pickle (which the queue does internally) only saves limited information.

@akenion akenion linked a pull request Aug 30, 2023 that will close this issue
@akenion akenion changed the title Show parent exceptions when an exception occurs during scanning and debugging is enabled Show parent exceptions when an exception occurs in a child process and debugging is enabled Aug 30, 2023
@akenion akenion added the dev-complete Development work to resolve this issue is complete label Aug 30, 2023
@akenion akenion linked a pull request Aug 31, 2023 that will close this issue
akenion added a commit that referenced this issue Aug 31, 2023
Improved exception handling in child processes
@dallaskeene dallaskeene self-assigned this Sep 15, 2023
@dallaskeene
Copy link

Verified debugged child exceptions now show the parent exception as well, to provide more details on an error.

  • checked debugged child exceptions include the parent exception as well, when applicable
  • checked file locator errors
  • checked scan workers errors
  • additionally checked various IO errors

@dallaskeene dallaskeene added the qa-passed QA has tested and confirmed the fix for this issue label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-complete Development work to resolve this issue is complete enhancement New feature or request qa-passed QA has tested and confirmed the fix for this issue subcommand:scan Related to the scan subcommand
Projects
None yet
2 participants