Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

feat/gitserver: avoid logspam from deadline exceeded memory tracking errors#63215

Merged
ggilmore merged 1 commit into
mainfrom
06-11-feat_gitserver_avoid_logspam_from_deadline_exceeded_memory_tracking_errors
Jun 12, 2024
Merged

feat/gitserver: avoid logspam from deadline exceeded memory tracking errors#63215
ggilmore merged 1 commit into
mainfrom
06-11-feat_gitserver_avoid_logspam_from_deadline_exceeded_memory_tracking_errors

Conversation

@ggilmore

@ggilmore ggilmore commented Jun 11, 2024

Copy link
Copy Markdown
Contributor

This PR tweaks the logic in the gitserver new command logic to avoid printing errors from the memory observer if the context error is deadline exceeded.

Test plan

Unit tests

Changelog

  • In the gitserver new command logic, logspam from the memory observer when the context error is deadline exceeded will no longer occur.

@cla-bot cla-bot Bot added the cla-signed label Jun 11, 2024

ggilmore commented Jun 11, 2024

Copy link
Copy Markdown
Contributor Author

@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels Jun 11, 2024
@ggilmore ggilmore requested a review from a team June 11, 2024 21:08
@ggilmore ggilmore marked this pull request as ready for review June 11, 2024 21:08

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Another way would be to compare the err to ctx.Err() in case there are other conditions too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how exactly this could work, as it's possible for the error from the observer to be a multi error or wrapped.

@graphite-app

graphite-app Bot commented Jun 11, 2024

Copy link
Copy Markdown

TV gif. We look up at Rowan Atkinson as Mr. Bean wearing medical scrubs. He pulls down a surgical mask, gives a gloved thumbs up, and smiles maniacally. (Added via Giphy)

@ggilmore ggilmore changed the base branch from 06-11-fix_internal_memcmd_close_the_explicit_stop_channel_before_cancelling_context to graphite-base/63215 June 12, 2024 13:08
@ggilmore ggilmore force-pushed the 06-11-feat_gitserver_avoid_logspam_from_deadline_exceeded_memory_tracking_errors branch from b7fa330 to 936e9a1 Compare June 12, 2024 13:08
@ggilmore ggilmore changed the base branch from graphite-base/63215 to main June 12, 2024 13:09
@ggilmore ggilmore force-pushed the 06-11-feat_gitserver_avoid_logspam_from_deadline_exceeded_memory_tracking_errors branch from 936e9a1 to ed8b4fc Compare June 12, 2024 18:58
@ggilmore ggilmore merged commit 088ca29 into main Jun 12, 2024
@ggilmore ggilmore deleted the 06-11-feat_gitserver_avoid_logspam_from_deadline_exceeded_memory_tracking_errors branch June 12, 2024 22:32

Copy link
Copy Markdown
Contributor Author

Merge activity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants