[openstack-dev] [Ceilometer] Timeout should be added when call http request
aji.zqfan at gmail.com
Thu Nov 6 13:31:09 UTC 2014
I noticed that Ceilometer project uses lots of other OpenStack services,
and other thirdparty services APIs, but rare of them set timeout when call
http request, this is not a good behavior because many pollsters run in one
of threads, if one is every slow or stuckd, then others will not be able to
The worst case is if Ceilometer thread is stuckd, then when outside service
becomes normal, Ceilometer cannot recover itself, cloud operator will need
to restart the service manually, that is bad.
I have reported a bug, see:
and uploaded a patch, see: https://review.openstack.org/#/c/132974/
What's your opinion?
And *I need help for writing test code for this patch* (the main reason why
I write this mail), is there any idea to test timeout case? I don't want
the unit test to be very slow, so a real timeout like sleep is not my
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev