Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 0.5.2
-
Fix Version/s: 0.5.4
-
Component/s: Chef Client
-
Labels:None
Description
When running chef-client, my search queries for other nodes will sometimes return no results. I believe I tracked this down to Chef::Rest.run_request.
It seems the call to read_body without a block on line 151 may be creating some sort of race condition that causes the call to resp.body to return a blank string. After removing this call to read_body, or putting a sleep after it, I was not able to reproduce the problem.
I am running ruby 1.8.7 on Ubuntu.
Thanks,
Kris
Thanks for the great bug report, Kris. We'll get this fixed in the next release.