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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[win32] plays well memory check timeouts #2553

Merged
merged 1 commit into from
May 31, 2016
Merged

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented May 27, 2016

When timing out, the memory check illegitimately returns None instead
of an empty list, causing an error in the collector 馃拃..

2016-05-17 15:19:23 Pacific Daylight Time | WARNING |
checks.collector(win32.pyc:148) | Timeout while querying
Win32_PerfRawData_PerfOS_Memory WMI class. Memory metrics will be
returned at next iteration.
2016-05-17 15:19:23 Pacific Daylight Time | ERROR |
checks.collector(collector.pyc:293) | Unable to fetch Windows system
metrics.
Traceback (most recent call last):
  File "checks\collector.pyc", line 286, in run
TypeError: 'NoneType' object is not iterable

Fix it.

When timing out, the memory check illegitimately returns `None` instead
of an empty list, causing an error in the collector 馃拃..
```
2016-05-17 15:19:23 Pacific Daylight Time | WARNING |
checks.collector(win32.pyc:148) | Timeout while querying
Win32_PerfRawData_PerfOS_Memory WMI class. Memory metrics will be
returned at next iteration.
2016-05-17 15:19:23 Pacific Daylight Time | ERROR |
checks.collector(collector.pyc:293) | Unable to fetch Windows system
metrics.
Traceback (most recent call last):
  File "checks\collector.pyc", line 286, in run
TypeError: 'NoneType' object is not iterable
```

Fix it.
@yannmh yannmh added the bugfix label May 27, 2016
@yannmh yannmh added this to the 5.8.3 milestone May 27, 2016
@yannmh yannmh self-assigned this May 27, 2016
@truthbk
Copy link
Member

truthbk commented May 27, 2016

:shipit: looks good!

@yannmh yannmh merged commit c6768e8 into master May 31, 2016
@yannmh yannmh deleted the yann/win32-gracefully-fails branch May 31, 2016 16:54
gmmeyer pushed a commit that referenced this pull request Jun 17, 2016
[win32] plays well memory check timeouts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants