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

[docker_daemon] detect bogus pids and dont traverse /proc for them. #237

Merged
merged 2 commits into from
Mar 14, 2017

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Feb 24, 2017

No description provided.

@truthbk
Copy link
Member Author

truthbk commented Feb 24, 2017

SDK sibling for: DataDog/dd-agent#3205 + DataDog/dd-agent#3218

Copy link
Member

@hkaj hkaj left a comment

Choose a reason for hiding this comment

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

LGTM, we just need to sync the merge with the dd-agent PR for dockerutil.

continue
self._report_net_metrics(container, tags)
except BogusPIDException:
self.log.exception('Unable to report cgroup metrics.')
Copy link
Member

Choose a reason for hiding this comment

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

Do we need log.exception? We know the stacktrace, we raise this error in only one place, unless I'm missing something?
Could we specify a bit the error message? Since we catch a BogusPIDException, couldn't we share more info than just a generic message with the user?

^ Feel free to disregard those messages, I obviously don't know the context. :)

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I do agree there's no need to log the stack trace at all as this only happens here.

@degemer degemer added this to the 5.12.0 milestone Mar 9, 2017
@truthbk truthbk force-pushed the jaime/dockerzeropid branch from 817a05c to ae90a80 Compare March 14, 2017 18:50
@truthbk truthbk merged commit 4c4d9a2 into master Mar 14, 2017
@truthbk truthbk deleted the jaime/dockerzeropid branch March 14, 2017 19:22
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

Successfully merging this pull request may close these issues.

3 participants