Skip to content

Conversation

fregataa
Copy link
Member

@fregataa fregataa commented Feb 22, 2025

resolves #3788 (BA-817)

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue

@fregataa fregataa self-assigned this Feb 22, 2025
@github-actions github-actions bot added the size:L 100~500 LoC label Feb 22, 2025
@fregataa fregataa added this to the 25Q1 milestone Feb 22, 2025
@github-actions github-actions bot added comp:manager Related to Manager component comp:agent Related to Agent component comp:common Related to Common component comp:webserver Related to Web Server component comp:storage-proxy Related to Storage proxy component labels Feb 22, 2025
@github-actions github-actions bot added the area:docs Documentations label Feb 22, 2025
Comment on lines +451 to +455
try:
await root_ctx.event_producer.ping()
except (Exception, asyncio.CancelledError) as e:
log.error("Failed to initiate event producer (error: {0})", repr(e))
raise
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Umm… Rather than inserting log.error in every place where an Exception might occur, it seems better to convey exceptions meaningfully and handle them in a common place.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which place should the error handler be? I want the logger logs the exception raised in bootstrap steps

Copy link
Collaborator

@HyeockJinKim HyeockJinKim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The direction of subsequent work should be towards applying it to the common structure, but this PR will apply it as a temporary measure for now.
Is it still in the draft state and not yet completed? @fregataa

@fregataa fregataa requested a review from HyeockJinKim March 13, 2025 04:58
@fregataa fregataa marked this pull request as ready for review March 13, 2025 04:58
Copy link
Collaborator

@HyeockJinKim HyeockJinKim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the issue, but I'm not sure if this is the way to implement it.

@fregataa fregataa modified the milestones: 25.6, 25Q2 May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:docs Documentations comp:agent Related to Agent component comp:common Related to Common component comp:manager Related to Manager component comp:storage-proxy Related to Storage proxy component comp:webserver Related to Web Server component size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better error log when a server fails to set up contexts
2 participants